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
I am trying to add a table that summarizes the info I have in a facet grid boxplot to the same plot. df<- structure(list(design = c("F", "F", "F", "F", "H",
Here is a small chunk of R from Luke Tierney's codetools package: if (! exists("callCC")) callCC <- function(fun) { value <- NULL delayedAssign("t
I want to paste together results within the same case_when statement (i.e., if multiple statements are true for a given row). I know that I could do something l
I'm doing some analysis and I had to impute some values. To do so, I write this chunk of code: A) set.seed(1) for (i in 2:length (Dataset[-c(8,11)])) { D
I have a simple long df where every element in the fi column should be a new column in the wide df. So the new df should have 10 columns A:J. The wide df should
I started a new project in Rstudio and selected the option to use renv. The first thing I did was type the command install.packages('sf') and R returned the mes