Toggle input options and slider range
I gotten some great help to have reactive function working from Chris. However, there is still some issues I have and hoping there could be suggestions.Firstly, within the reactive function, I am...
View ArticleHow to convert number into date-time format in excel ( i have equivalent...
Referring to the above screenshot, i'm trying to crawl data from Singapore Stock Exchange, which the web content is loaded dynamically from an API call returning json, example hereI'm having some...
View Articlecreate smooth plots from different variables of same data set
I'm trying to create a smooth plot in which color represents manufacturer and the lines represent the overall relationship between disp and hwy. I can do that with this: df <- subset(mpg,...
View Articleinterpretation of plot_features output in LIME- supports vs contradicts...
I've created a GBM model explanation using LIME and have used plot_features to plot the results. I'm confused by the mismatch between the output of the plot, in terms of Supporting and Contradicting...
View ArticleHow can I exclude rows from a table, using the rows' names from another...
This question already has an answer here:Removing data from one dataframe that exists in another dataframe R 3 answersI have a .csv table1 A B C D E gene1 1 3 5 9 gene2 0 0 4 4 gene3 1 0 1 2 gene4 5 5...
View ArticleHow does agnes() in R treat factor columns?
I'm new to R, and I haven't seen this discussed anywhere, so I'm only 95% confident of my results.Reading the agnes() documentation, I see that in the input "matrix or data frame, each row corresponds...
View ArticleshinydashboardPlus: Opening a closed boxPlus
How can I open (using code) a closed boxPlus? https://cran.r-project.org/web/packages/shinydashboardPlus/vignettes/improved-boxes.html
View Articledplyr mutate_if with multiple conditions?
I have data that looks as the following:dt <- data.frame(id = sample(LETTERS, 100) ,A = seq(1:100), B = sample(1:100000, 100), C = rpois(100,1), D = seq(1:100)^3) I am trying to transform any...
View ArticleCombine group_by, ifelse and filter
I would like to combine group_by, ifelse and filter my code for the example dataframe below. What I would like is the following: 1) Group by x. 2) Check if result > 1. If TRUE, check if month for...
View Articlereferring to lists within larger lists from a loop
I want to cycle through many models and output the coefficientsBasically I want to do what the code below does. But then refer to each object in the list that is generated that contains the object list...
View ArticleHow to plot copy number variation profile in R?
I'm trying to plot a copy number variation profile plot in R. This is what I'm looking for but with all the cells in my data.Ploidy is on the Y axis and chromosome number is on the X axisThis is my...
View ArticleInterpeting multilevel logistic regression
I ran a multilevel logistic regression, and I rescaled the variables using the scale function. The variables in my data set are centered around the mean and rescaled. Below are my results:Generalized...
View ArticleMitchell-Olds & Shaw test null hypotheses
I have finally decided to reach out for help regarding the Mitchell-Olds & Shaw test. If you're not familiar, it is designed to help researchers better interpret quadratic regressions. That puts it...
View ArticleQuestions with ggplot() and geom_smooth()
Currently I want to do a plot in ggplot where the size of the line and the color changes according to the geom_smooth done. I've been trying to add this in the geom_smooth aes option but it displays me...
View Articleextract a text string after spaces and a symbol with gsub R
I need to extract the first word (German) from the following text stringsubstr(details[1],0,50)%>% + gsub("[^a-z/A-Z/,/ ]","" ,.)%>% + gsub("A-Z.*" , "", .) [1] " , German, European, Central...
View Articlehow to produce scatterplot of .txt file in R
I am currently trying to produce a scatterplot of a .txt file that is structured like this in 25 rows:age income weight33 63 18025 72 220 however, when I try to convert it to a csv and then produce a...
View ArticleCreate a Loop that creates a linear regressions for each date
Every time I analyze samples in the lab, I need to create a separate standards curve using a linear regression model. The code below makes it such that I can filter out observations for each date and...
View ArticleTransform left skewed data in R
I have a column that is left-skewed, I need to transform it. So I tried thislibrary(car) vect<-c(1516201202, 1526238001, 1512050372, 1362933719, 1516342174, 1526502557 ,1523548827,...
View Articlersession: no process found - R Studio
I am installing R Studio on AWS ec2 instance running Ubuntu. While installation I get an error "rsession: no process found". After installation I opened "server_ip:8787" in browser, R Studio asked me...
View ArticleCustom lookup function in R not working within dplyr::mutate in R
I'm trying to use a custom function, which filters a dataframe and pulls information from another column, within dplyr::mutate with dplyr version 0.8.3. I'm getting two types of errors. One with a...
View Article