I have the following code for an LME: IDRTlme <- lme(Score ~ Group*Condition, random = ~1|ID, data=IDRT) I want to check the normality assumption, and so I h
I have hundreds of excel files with a single column and a single sheet containing text. I am trying to write a loop that will 'Wrap Text' and align the single c
I'm having trouble getting r's dplyr::arrange() to sort properly when used in a for loop. I found many posts discussing this issue (like ex.1 with the .by_grou
I have a data frame called "ref" that contains information that allows mapping of gene entrez ID to the gene's start and end positions. I have another data fram
Objective: To view .fcs data as a dataframe using R language. Flow Cytometry data comes in .fcs file format. The file is read in the flowFrame structure produce
I have a code in R, where in the data frame "inputdata" there are multiple columns, and we are replacing the word "new" with "old" in the entire data frame: nam
Aim: Return a reactive dataframe object from within the module named "modApplyAssumpServer" Problem: I am getting an endless loop. Even if I wrap everything wi
I would like to have different header colors for the xlsx sheet I'm creating. However, I'm only able to create a single color for the header with the below code
I have a dataframe that looks something like this: df <- data.frame(gvkey = c(1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6), date = c(01,02,03,01,02,03,01,02,03,01,0
I have a lot of categorical variables that are going into a single graph, which is split on a particular status. Something like this, but with many more groups
I have a vector x <- c(5, 5, 5, 3, 2, 2, 5, 5, 2). I need to get a new vector with the ordered distinct (but duplicates allowed) values: y <- c(5, 3, 2, 5
I need to join two datasets and the only identifier in both are the company names. For example: db1 <- tibble( Company = c('Bombardier Inc.','Honeywell Dev
I have a dataframe (df1) and have calculated the deciles for each row using the following: #create a function to calculate the deciles decilefun <- function(
I have encountered some problems with printing my regressions in R with two different analysis. Usually I would use the stargazer to print the table and/or hand
I have this dataframe, which I have data for US's states population for different time periods, I want to set the population of every state to its initial value
I've two dataframes DF1 and DF2. One of them is a very large DF. I've created examples DF1 and 2 like this: library(tidyverse) A<-rep(c('Mavs', 'Spurs', 'La
I have a list of dataframes that all have the same format (same number of rows, same number of columns and columns have the same name). I would like to create a
I'm importing CSV file to Rstudio. I use this command df <- read.csv("C:/Users/Ibad/Desktop/corona.csv") But I see there are many missing(NA) values in Rstu
How to set this plot in ascending order? many thanks in advance. library(ggplot2) library(reshape2) iris2 <- melt(iris, id.vars="Species"); iris2 ggplot(da
I am trying to include Pooled Standard Error (PSE) and Eta square to tbl_summary(). PSE is calculated by sqrt(mean(residuals^2)/n), I tried to calculate step by