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.
516.2k Questions
+105
13.2k Members
+53
Contact

Pinned Bulletins

View all 1 bulletins

R Language has some news to share

Bulletin
1 min read
2k views

Welcome to the R Language Collective

Pinned content

View all 3 collections

R Language admins have deemed these posts noteworthy.

Pinned
18 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

Can you answer these questions?

View all unanswered questions

These questions still don't have an answer

0 votes
0 answers
9 views

Adding nested lists using xmlrpc2 package

I'm trying to integrate R with Odoo using the XML-RPC API and the xmlrpc2 package in R. When trying to get the result from the response using result <- from_xmlrpc(content(response, as = "text&...
0 votes
0 answers
17 views

1-D flow model in lsode in r

I want to create a very simple stream model in R for demonstration purposes, and I want to use the deSolve package to keep things fast. What I would like to do is have a vector of each concentration ...
0 votes
0 answers
32 views

ggsurvfit Kaplan Meier risk table customisation

Does anyone known how to customize the risk table below the plot using ggsurvfit such that for one cohort all the values are set to NC (not calculated) instead of the N at risk that is presented ...
0 votes
0 answers
27 views

Exit swirl in the middle of a cmd_question

I know I can exit swirl by typing bye() but this doesn't work when I have a cmd question that is waiting for my input. In this case it works as "normal R" and if I type some of the keywords ...
0 votes
0 answers
15 views

Extracting WAIC using rjags::jags.samples() from single chain of bayesian model run in parallel with JagsUI

I am using JagsUI to run many single and multi-predictor models, using the autojags() function to run them until convergence. I would like to do model selection using WAIC, rather than DIC. The JagsUI ...

Looking for an extra challenge?

View all bountied questions

These questions have a bounty on them

0 votes
1 answer
66 views
+50

Spectral interpolation of Sentinel-2 in r

I have sentinel-2 data of few months. I am trying to interpolate sentinel-2 image using values from nearest dated image. The problem is that the code is quite inconsitent. It sometime replace the ...
2 votes
0 answers
165 views
+150

Optimizing a complex, custom data problem - find the optimal polygon that contains a give fraction of data, with constraints

I am working with Uranium-Lead geochronological datasets. This type of data is typically interpreted in what is called a "Wetherill" concordia diagram, an x-y coordinate space where each ...

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