Quantcast
Channel: Active questions tagged r - Stack Overflow
Browsing all 201839 articles
Browse latest View live
↧

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 Article


Image may be NSFW.
Clik here to view.

How 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 Article


create 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 Article

Image may be NSFW.
Clik here to view.

interpretation 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 Article

How 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 Article


How 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 Article

shinydashboardPlus: 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 Article

dplyr 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 Article


Combine 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 Article


referring 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article

Interpeting 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 Article

Mitchell-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 Article


Questions 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 Article

extract 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 Article


Image may be NSFW.
Clik here to view.

how 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 Article

Create 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 Article


Transform 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 Article

rsession: 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 Article

Custom 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
Browsing all 201839 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>