I've got a long R code now and I'm trying to make it more readable. Below is a small chunk from my code - U2OverlayG1 <- GrowthorDiff(U2Overlay, Metadata, 1)
I want to inspect adjacent elements in a list based on a match. For example, in a list of randomly ordered letters, I want to know what the neighboring letters
I've been facing in R the error message for days using getSymbols of the quantmod package: Error in new.session() : Could not establish session after 5 attempts
I have a function "compute_gini" with 4 inputs. compute_gini(df, var, split, minsplit) I want it to run let's say 200 times but each time it runs, the input va
I'm new to R and I'm trying to make my chart interactive using shiny and leaflet in R. however I can't seem to run my map_data() under reactive ({ code }) becau
How to change 1.3445 to 13445, 2.4444 to 24444 , and keep 1.20 not change. Thanks! md <- data.frame(value=c('1.3445','1.20','2.4444'))
my brain hurts, I can't figure it out, I would be tremendously thankful for your help. I have a database that gets encrypted at storage using PHP. I need to dec
I'm new at web scraping an I'm stuck with this. My goal is to generate a table with historical data from '2018-01-01' to '2021-12-31' but I have 0 idea of how t
I am working on replicating in a Rmarkdown a report I made in Excel. In some of the results I have tables with conditional columns with color formatting, from r
In readr, where combine using parameter col_names = TRUE and col_character as below code3, it's failed and the error message as attached image. Anyone can help
Goal In an R/Markdown document that I want to convert to LaTeX I want to set knitr options so that the entire document uses plain code chunks for all code input
I found how to print selected column by their names on R but not how to print the column names. My data set is called t and I tried that : print(colnames(t[3:nc
I would like the title of my plot to change based on if the supply is over or under the estimate. The estimate of the supply is in DF$Supply.. If it is positive
I've written code that runs a long calculation in which, as part of it, several UI elements are updated showing part of the progress and results of the calculat
I was exploring the capabilities of the smartEDA package and stuck with a challenge. The target column "US" has 2 categories - "Yes" and "No". The output (below
I am trying to get two samples with unique elements in each sample. That is, the strings on the "first" vector cannot be in the "second" vector. Unfortunately,
I have some code like this: seq(0, 2*pi, length.out = 100) %>% cbind.data.frame(t = ., Y = sin(.)) %>% qplot(t, Y, data = ., geom = "line")+ geom_
how in Rstudio, I can compute the below command?.
I want to extract the random effects from my lmer model, including the person this random effect belongs to. My goal is to create a tibble that has one column f
I have the following dataframe and I want to mutate all the columns in ENV dataframe to substitute some value with case_when function: metrics <- stru