I have two lists in R. One is a list of data frames with rows that contain strings (List 1). The other is a list (of the same length) of characters (List 2). I
Im trying to graph the number of bases (A,C,G,T) each of my viruses have on a single histogram. library(readxl) library(ggplot2) Bases <- read_excel("/Users/
I want distinguish between $p-values$ for t-test and $p-values$ for Wilicoxon in this code, How can I do that? replicate(1000, ifelse(shapiro.test(rnorm(4))$p.v
I'm having a bit of a struggle trying to figure out how to do the following. I want to map how many days of high sales I have previously a change of price. For
I've been trying to accomplish this in dplyr but not been able to figure it out. In one data frame (df1) I have columns with values. |A |B | |23 |43 | |24 |11
I am using an R package which extracts data from tables in a database based on the flag for each table. If the flag is 1, extract data from that table. If the f
My data have 2 numerical columns (positive and negative values) and 2 categorical variables. Now I want to plot negative and positive bars on same line, instead
I have a data set that looks something like this data set example I am trying to find unique entries in each of the columns I managed to do it for 1 column util
Say that I have a dataset. date <- c("2004-02-01", "2004-03-05", "2004-08-09", "2004-08-13", "2004-10-20", "2004-11-02", "2008-01-05", "2008-02-03", "2008-08
I have created a simple dashboard (link here) to display some data in R using selectInput. How can I activate/deactivate a filter reactively, so that the output
I'm trying to customize the linter settings in VSCode for R but I'm a little confused. I've checked just about every source available, from SO questions to the
I have a gam in R (mgcv package) with 7 parameters, and one of them is a fixed effect with 30 levels (30 names). I want to analyse the regression coefficients f
I tried to load my R workspace and received this error: Error: bad restore file magic number (file may be corrupted) -- no data loaded In addition: Warning mes
I am trying to find a simple way to pivot_longer a dataframe that has multiple columns containing different data for each case. Using multiple names in names_to
I have too many labels on the x-axis. How can I project them vertically? I can't find the right arguments... boxplot(df$y$x, data=df, drop = TRUE, main = "Bo
I have a list: mylist<-list() data<-1:162 listlabel<-c("a","bpt","b","fpt") for (i in 1:4){ label<-listlabel[i] mylist[[label]]<
I am using Rstudio in windows 10. I am triying to create a pdf from a .tex file. However, when I compile the PDF, the following error appears: Running pdflatex.
I'm wondering what I should be doing here (please refer to image). I have already defined two vectors which are k=c(0,1) and v=c(runif(2,0.3,0.7)) where alpha=v
I want to extract rows that must contain two or more partial strings. For example, suppose I have the following data.table df <- data.table(player = c('A', '
I would like to restrict editable mode in datatable for columns and rows. For the moment, in this minimal example, I can edit only specific columns but it doesn