Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.

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.
516.2k Questions
+45
14.8k Members
+83
Contact

Pinned Bulletins

View all 1 bulletins

R Language has some news to share

Bulletin
1 min read
3k views

Welcome to the R Language Collective

Pinned content

View all 3 collections

R Language admins have deemed these posts noteworthy.

Pinned
20 votes
3k 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 ...
Berthold's user avatar
  • 101
Pinned
49 votes
5k 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
64 views

stat_ellipse() in MCA plot does not cover jittered points / extends far beyond the data

I am creating a Multiple Correspondence Analysis (MCA) plot in R using FactoMineR, factoextra, and ggplot2. The goal is to add confidence ellipses around the archetype categories in the MCA space. The ...
0 votes
0 answers
45 views

Creating new variables for -n exact months to an enddate

I have datasets that contain information about healthcare use of individuals called data2014-data2021. Each individual has an enddate (called 'limiet' in the code) which can be somewhere in 2014-2021. ...
0 votes
0 answers
37 views

RStudio error message said ggplot data is too long for aesthetic

I was meddling with R programming and trying to graph distribution of 2 variables in a data frame. However, the code gave me the warning: G2;H2;Warningh in geom_density(adjust = 1, alpha = 0.5) : [38;...
0 votes
0 answers
40 views

FlowSOM randomly stops because of missing consensus.pdf

Recently I got into some trouble when using FlowSOM Clustering from the FlowSOM package in R. An Error shows up while a vectorized function is running, but it seems random, not constricted to certain ...
0 votes
0 answers
40 views

How to get rid of NaN result when using setEvidence function in gRain package when doing Bayesian modeling?

For context, I am conducting hazard modelling, examining the flow of impacts from node to node within a network using Bayesian network analysis. I have a simplified network diagram dag below which I ...

Learn something new
These are the most recent articles in R Language Collective
49 votes
5k 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
20 votes
3k 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