I need to restart an R session running in linux using a line of code. When the R session restarts I need it to load an existing R script and for the new R sessi
This is an odd sort of question, but I'm using the exact data and code from this github here: https://github.com/edunford/tidysynth However, when I get to the c
I am using a piece of R code which was provided as a response to the previous question Using tidyverse and matconv to convert Matlab code to R code. The code su
The data: df <- tribble( ~name, ~val.I, ~val.V, ~`val.%`, "Peter", 123, 12.4, 14, "Peter in %", 111, 532, 57, "Harald", 2222, 3333, 444, "Harald in
I want to create a variable which identifies the first occurance of a variable in a column but I cannot seem to get the code to work. The new varibale should on
I want to remove certain variables from the plot. # Packages library(tidymodels) library(mlbench) # Data data("PimaIndiansDiabetes") dat <- PimaIndiansDia
I am trying to make a table from my CI output, I do not have experience making tables in R and would really appreciate some help. CI <- data %>% group_by(
I am trying to visualize my data separately as a bar graph and as a dot plot connected by a line. The experimental design includes 2 treatments, 3 levels for ea
I am trying to find the "matrix index" from values of dataframe in the Position column. The "matrix" that I would like to reference to is either a 3 x 3 or 4 x
Given a sample data frame: C1<-c(3,2,4,4,5) C2<-c(3,7,3,4,5) C3<-c(5,4,3,6,3) DF<-data.frame(ID=c("A","B","C","D","E"),C1=C1,C2=C2,C3=C3) DF I
I'm trying to create dynamically create tabbed output of skim() results in a R Notebook, but the output format comes out all funky. I'm using the asis results o
I have a data set with 2 million lines, so loops are not an option. The problem is about as follows: Each line is a transaction by a person. A person can have m
I have an ordinal variable with the following categories very favorable (1) somewhat favorable (2) somewhat unfavorable (3) very unfavorable (4) don't know (8)
I am working on a dataframe df that has thousands of rows of junk data in which the first number is to be extracted despite irregular delimiter: dummy_numbers =
I would like to see if it is possible to use the aggregate function to find the mean for values from Sep. to Oct. of multiple years. I would like to compare the
I was wondering if there was a way to retrieve the data from a model built from the BART package in R? It seems to be possible using other bart packages, such a
Does anyone know how to extract alpha diversity outputs from the estimate_richness() function from the phyloseq package? I am having a hard time finding the cor
I just started to use RStudio with Python (up to now everything works) and I wonder if there is a preferred way to run scripts such as my small Test.py containi
I'm a newbie in R. Is there anyone who can help me? I import a CSV of extract of stackoverflow data from, s <- read_csv("https://www.ics.uci.edu/~duboisc/sta
I am attempting to take a fairly large dataframe of comments from a survey and use grep to identify comments that contain one of a list of keywords index <-