I have a task, which is too complex for my R-knowledge. I have a dataframe with Tweets-data, including a column that consists of the usernames, data of the Twee
Running regression with panel data on different geographical levels in the US and Euro area with weights that essentially look like this: lm(log(POP25) ~ log(EM
I'm struggling with this problem: I have three lists of dataframes (each list has the same number of rows, each dataframe has 3 columns). I want to combine the
I have many excel sheets that I need to remove the second sheet before importing them. All files are .xlsx type in one folder and have same format. What kind of
I have a query that gives me a dataframe. When I receive the data frame, I use this code to make some numeric variables: variables_numeric<-c("A","B","C","D"
When trying to plot some data in ggplot2 using geom_line(), I noticed that the legend items become empty if I use alpha < 1. How can I fix this and why is th
I have a matrix: mat <- matrix(c(3,9,5,1,-2,8), nrow = 2) [,1] [,2] [,3] [1,] 3 5 -2 [2,] 9 1 8 I have a list: lst <- as.list(dat
I have multiple csv files with the columns "timestamp" and "users_holding" I was able to split the timestamp column into two columns "Date" and "Time". I am now
When I am runing shiny in vscode I can't draw a plot. Even the example shiny::runExample("01_hello") enter image description here this is my sessionInfo() R ve
I have calculated the Anova F-Test p-value for differences in means for several variables. Now I would like to add "stars" that indicate the significance level
Disclaimer: This error is related to a subscription-based tool and hence the issue is likely not going to be reproducible for any reader. Nevertheless, any sugg
I have a "frequency table" similar to this one # Create a matrix df<- matrix(sample(0:10,35,replace=T),nrow=5, ncol=7) # Rename columns and rows colnames
Consider this data: df <- data.frame(group = c(1, 2, 2, 2), start = c(2, 7, 7, 7), stop = c(8, 7, 8, 9),
I need help with counting pixels of the same value in R. I'm doing a master thesis and part of it is calculating the NDWI of an area before and after floods so
The following code is from Stefan, who answered a related question library(ggplot2) library(dplyr) library(tidyr) library(tidytext) mtcars2 <- as_tibble(mtc
I am creating my own package and use devtools to document and check the package. About 50% of the time that I run devtools::check() it ends with this error:
I've long been a user of RcppArmadillo, but have been unable to compile any programs via sourceCpp since upgrading my OS to Monterey Version 12.3. Getting the f
Is it possible to change the background color of user-selected cells in a Shiny app DT table based on programmatic rules and reactive values? I can customize th
I have 12 csv files that I need to merge for analysis project and their size ranges from 20mb to 120mb per file. I attempted cutting down to only using the nece
Given this R script: library(glue) library(ggplot2) ir.data <- read.csv(file="~/apps/mine/cajueiro_weather_station/sensor_data/temperature_data.csv", header