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.
511.5k Questions
+444
9.8k Members
+99
Contact

Pinned content

View all 3 collections

R Language admins have deemed these posts noteworthy.

Pinned
39 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
Pinned
14 votes
1k 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

Can you answer these questions?

View all unanswered questions

These questions still don't have an answer

0 votes
0 answers
6 views

ggplot bar chart position = "identity" overlaying values with same number in wrong order

Hi –hoping we have some good tips out there! I have encountered an issue with ggplot's overlaid bar chart, only when two values are the same. I have three columns of data, for yesterday, three day and ...
0 votes
0 answers
8 views

Colab Document R Session connecting to BigQuery Permissions

I'm trying to use an R runtime in a Google Colab document to pull data from BigQuery. A forum suggested that I use the BigRQuery package, but I have some questions regarding what's actually being ...
0 votes
0 answers
5 views

Optional Facet Argument for a Stacked Bar Chart in a Customized Function

I analyze survey data as part of my job responsibilities, so I often build matrices of statements with various scales (e.g., agreement, clarity, etc.) for respondents to answer. I already created ...
0 votes
0 answers
6 views

Shared memory in parallel foreach in R using set.seed

As seen in this question, in Windows it is not possible to run parallel processes with shared memory in R. Therefore, I have devised the following methodology, using a series of set.seed(), to ...
0 votes
0 answers
9 views

Finding polygon coordinates from the locality name in R

I have a list of locality names in Delhi, India. I want their corresponding polygons. However, till now, I am only able to get their latitude and longitude. Here is the code I am using library(...

Looking for an extra challenge?

View all bountied questions

These questions have a bounty on them

2 votes
4 answers
165 views
+50

Extract percentiles values from Scopus using R

I'm trying to get the Highest percentile value from Scopus for all the journals. The URL is: https://www.scopus.com/sources.uri This values is updated every year, so the value for each year is even ...
5 votes
0 answers
125 views
+200

How can I use a non-standard graphics device interactively?

The problem When running R outside of RStudio, plots will by default be shown in a pop-up window, e.g. provided by the quartz device on macOS, the X11 device on Unix, the windows device on Windows. A ...

Learn something new
These are the most recent articles in R Language Collective
39 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