Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!

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.
515.7k Questions
+12
16.7k Members
+24
Contact

Pinned content

View all 3 collections

R Language admins have deemed these posts noteworthy.

Pinned
Score of 22
4027 views
Collection

R Language Frequently Asked Questions

The questions that get asked repeatedly, gathered together in one place. What’s a question every R programmer asks at some point? Add it here! Grab questions from the r-faq tag to get them added ...
Pinned
Score of 48
5061 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

Score of 0
0 answers
22 views

Trouble with fitting confirmatory factor models in R with lavaan

I am currently working on a scale development project. The scale is a measure of objective knowledge and therefore the variables are binary (0=incorrect answer, 1=correct answer). I want to compare a ...
Score of 0
0 answers
46 views

Add red shade/area to facet plot

I have a facet grid plot where I wish to add red-shaded rectangles/areas to categories for which I don't have any observations. I remember I achieved something similar with a much simpler 3×2 facet ...
Score of 1
0 answers
97 views

Differences in results between terra::extract and exactextractr::exact_extract

I am extracting values from a raster based on a multipolygon layer. The polygons can overlap various raster cells or be wholly contained in one cell. I am interested in the sum of the value across the ...
Score of -3
0 answers
95 views

How to obtain and export a panelAR regression result?

Question update ; I am trying to summarize a panelAR model using modelsummarymodelsummary, which doesn't support panelAR models. I followed their instructions regarding unsupported models from this ...
Score of -1
0 answers
68 views

Piecewise SEM pathway plotting

I want to visualize my piecewise SEM models which have 5 exogenous climate variables, 3 tree physiological mediators and one tree growth response variable. I attempted at it manually, but I would like ...

Learn something new
These are the most recent articles in R Language Collective
Score of 48
5061 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
Score of 22
3338 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 ...