Skip to main content

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.
516k Questions
+44
15.6k Members
+54
Contact

Pinned content

View all 3 collections

R Language admins have deemed these posts noteworthy.

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
Pinned
21 votes
4k 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

1 vote
0 answers
35 views

How to include a topics filter in the oa_fetch function from the openalexR package?

I want to retrieve from openalex a list of all the works on non-standard work schedules in the social sciences. In R, I used the script attached below. I am using the oa_fetch function from the ...
1 vote
0 answers
56 views

how to add dependency stock indicators in highcharter package

library(highcharter) library(tidyverse) library(quantmod) x <- getSymbols("AAPL", auto.assign = F) x <- xts::last(x, n = "3 years") highchart( type = "stock" ) |...
3 votes
0 answers
76 views

Sending emails through local proxy

I need to bypass Iran's internet censorship to send emails using R's emayili package. The standard gmail() function fails because the regime blocks the default SMTP protocol. My goal: Use local HTTP/...
0 votes
0 answers
55 views

How to implement an anisotropic Gaussian filter with position-dependent σ from a viewing angle raster?

I am working on downscaling (increasing the spatial resolution) satellite imagery from VIIRS (VNP46A2 nighttime lights product). VIIRS is a whiskbroom sensor, and I need to model its point spread ...
0 votes
0 answers
67 views

RStudio not finding RTools installed different location

Sorry, I think variants of this have been answered before, but I can't seem to figure out the solution. I am running R4.3.3 in RStudio on a company-provided laptop which is very ringfenced and needs ...

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