R Language Collective

A collective where data scientists and AI researchers gather to find, share, and learn about R and other subtags like knitr and dplyr.
510.9k Questions
+456
9.5k Members
+117
Contact

Pinned content

View all 2 articles

R Language admins have deemed these posts noteworthy.

Pinned
37 votes
2k views
2 minute read
How-to guide

How to write a good R question with a reproducible example

This article is largely written based on https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example When posting a question to Stack Overflow, you should include a minimal ...
user avatar

Can you answer these questions?

View all unanswered questions

These questions still don't have an answer

0 votes
0 answers
5 views

Perpetually running error "Error: cannot have attributes on a CHARSXP"

I am a bit at a loss. I am now revisiting some script that I used multiple times before, which involves stringi, stringr, dyplr, data.table packages. In the past it ran like a charm. Now however I ...
1 vote
0 answers
10 views

Embedding plotly (r) graph on website, updating through API call?

My question: I am wondering about embedding a plotly bar graph in a website. The graph would pull data from an API call, cached (so it calls a maximum once a minute). I'm assuming this is possible, ...
0 votes
0 answers
17 views

Using two data frames in R to determine the diameter size

So I have two data frames. I'm trying to use smps_8 as the particle value that I am trying to find on the smps_7 for each of the different days. For example, in smps_8, the column c2014-09-30 19:00:00 ...
0 votes
0 answers
9 views

Obtaining corr matrix (probit residual correlations) for observed variables after fitting an EFA model using lavaan

Looks like lavaan's efa() function does not have an option to generate the correlation matrix for observed variables. I wonder how can I obtain the corr matrix (probit residual correlations) for ...
0 votes
0 answers
15 views

How to make an R Shiny app with big data?

I'm trying to create a simple R Shiny app that takes the chromosome, start, and end positions of CpGs as inputs and outputs boxplots for each CpG within the range. It works fine on the subset of data ...

Looking for an extra challenge?

View all bountied questions

These questions have a bounty on them

4 votes
2 answers
99 views
+50

Why do some of the geom_text labels flipped when added on a dodged geom_col?

I have the following dataframe df: df <- structure(list(ID = c(1, 1, 2, 2, 3, 3, 4, 4), Group = c("A", "B", "A", "B", "A", "B", "B&...
2 votes
1 answer
372 views
+50

version requested doesnt match

I'm trying to use selenium package but I get an error. chromever <- "113.0.5672.64" chromedriver <- ".../chromedriver.exe" driver <- rsDriver(browser = "chrome",...

Learn something new
These are the most recent articles in R Language Collective
37 votes
2k views
2 minute read
How-to guide

How to write a good R question with a reproducible example

This article is largely written based on https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example When posting a question to Stack Overflow, you should include a minimal ...
user avatar
16 votes
1k views
3 minute read
How-to guide

Create multiple PDF/HTML reports using R Markdown in a loop

How to create multiple PDF/HTML reports in a loop using R Markdown With R Markdown, creating a PDF or HTML report is straightforward. But what if you want to create various reports? Furthermore, what ...
Guibor Camargo Salamanca's user avatar