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
I have a subset of data frame as below. I want to fill the NAs in column "age at disease" so that the age of one individual with disease be same as the sibling
I have the following code: install.packages("microbenchmark") install.packages("readxl") install.packages("data.table") I would like to create a vector of a va
I have a data frame df<-data.frame(Name=c('H001', 'H002', 'H003', 'H004', 'H005', 'H006', 'H007', 'H008', 'H009', 'H010'),
I have a very long function whose arguments take in different threshold values for different variables and give an event study result at the end. I want to comp
I have a longitudinal data set with two people in which the rows of data are numbered as 'episodes', and some episodes have a test 'result'. The goal of the bel
I created a list of random words: library(OpenRepGrid) list_of_words <- randomWords(100) list_of_words <- gsub("[^A-Za-z ]", "", list_of_words) list_of_wo