Questions tagged [r]

R is a free, open-source programming language & software environment for statistical computing, bioinformatics, visualization & general computing. Please use minimal reproducible example(s) others can run using copy & paste. Show desired output. Use dput() for data & specify all non-base packages with library(). Don't embed pictures for data or code, use indented code blocks instead. For statistics questions, use https://stats.stackexchange.com.

Filter by
Sorted by
Tagged with
1 vote
0 answers
7 views

How can I make a table for vif output for multiple models?

I created 5 polr models and then using the Anova anf vif functions to my models. Here is an example of how I convert my output of vif into table: vif.model1 = vif(model1) vif.model1.tolerance = 1/vif....
user avatar
  • 55
0 votes
0 answers
7 views

Issue entering ESPN login info with RSelenium

I'm trying to enter text into a pop-up window through Selenium in R and can't seem to find where to do it. library(RSelenium) rD <- rsDriver(browser="firefox", port=4545L, verbose=F) ...
user avatar
0 votes
0 answers
11 views

Extracting specific value from multiple sheets

I have multiple excel files with multiple sheets. I need to extract the value from J9-Q10 of the specific sheet for each file, (J9 is empty) example of needed cells and I also need the file name as ...
user avatar
0 votes
0 answers
9 views

Using the %LIKE% Statement for a Condition Stored in a Data Frame

I have these data frames: my_data = data.frame(col1 = c("abc", "bcd", "bfg") , id = 1:3) my_data_1 = data.frame(col1 = c("abc", "byd", "bgg&...
user avatar
0 votes
0 answers
5 views

rvest looping through multiple names to search google and scrape birth years

Put simply I am wanting to provide a function or even use a loop with a list of chess player names with the function completing a google search for each name, scraping their birth year, and then ...
user avatar
0 votes
0 answers
4 views

Number of response variables allowed to use in a linear mixed effect model? using lmer function (lme4 package) R

Hi if I have lots of response variables that I want to use in a linear mixed effect model, do I have to run those separately by each response variable or is there a different model I should be using?
user avatar
0 votes
0 answers
6 views

Lineplot by group over time

I am trying to build a line plot showing the change of a certain variable over time by group. My data has values from a single person stored in each row and I am struggling to plot the mean and ...
user avatar
  • 1
0 votes
0 answers
6 views

How to account for clustering when calculate Spearman coefficient in R?

I have a group of people who had their drug concentrations measured by using blood and hair over time (i.e., everyone had three values measured by blood samples and another three values measured by ...
user avatar
0 votes
1 answer
14 views

A way append results when mutiple conditions are met

I provided two rows of my dataset below. In the dataset, I have a text column, and I have certain keywords that I need to look up in this text column, there is about 20 keyword searches I need to ...
user avatar
  • 187
0 votes
0 answers
11 views

How to pass a Shiny output object inside a package function?

I have a shiny app which should update a label on UI when a function inside a package (nested inside several other functions) does something. What options do I have? I can think of changing all the ...
user avatar
0 votes
0 answers
8 views

Overlay bathymetric data onto OSM multipolygons

I want to draw the map of a lake with the bathymetries I have taken with the sonar. I have a .sl2 file (Lowrance sonar) that I have converted to .csv (Namely, Sonar_13_07_1.csv). Finally I get 3 ...
user avatar
0 votes
1 answer
10 views

RMarkdown: knitr::kable::format.args does not work globally

I have an R code (RMarkdown) to generate a table with knitr.kable. As I will need to generate several tables with the same formatting, from several data.frames, placed as settings globally. However ...
user avatar
-1 votes
0 answers
23 views

First time using R programming [closed]

I have no idea on how to code or program but I am so in love with it that I chose to learn online with Coursera and other pdfs on the net which is very difficult. How do I start and continue to be ...
user avatar
1 vote
1 answer
23 views

Retrieve first non NA value based on another (time) variable

Currently working with some time series data and I want to find the first value of each variable recorded for individuals, with a fair bit of missing data. I am trying to create a summary of the first ...
user avatar
  • 11
3 votes
4 answers
26 views

How to create a column marking if values are present in other columns in r?

I have 5 columns of 5 different p-values. I am looking to mark in a new column when values in any of the 5 columns are present. My data looks like this: Gene pvalue_group1 pvalue_group2 ...
user avatar
  • 204

15 30 50 per page
1
2 3 4 5
30585