Pinned Bulletins
View all 1 bulletinsR Language has some news to share
Pinned content
View all 3 collectionsR Language admins have deemed these posts noteworthy.
How to write a good R question with a reproducible example
R Language Frequently Asked Questions
Can you answer these questions?
View all unanswered questionsThese questions still don't have an answer
Download satellite data using http::GET but the files are incomplete
Pairwise T-test for Welch's F ANOVA
Query about DSEq2 package in R
Repeated measures in RDA (aka "fixed" or "random" effects): why does Condition remove the contraints?
Customize flextable XML in Word documents using officer and flextable with new versions
Recommended answers
View all recommended answersThese answers have been recommended
Create a string from data in a dataframe column in R
The documentation might be a little misleading. It says Usage: validator(..., .file, .data) Arguments: ...: A comma-separated list of validating expressions .file: (optional) A ...
Why does `tapply` give a different result depending on the parameter of FUN
When FUN= returns a scalar for all calls, then the default of simplify=TRUE means that it is turned into a vector, non-indexed positions are assigned NA as an indicator of missingness, and this vector ...
How can I set "cr" as the default basis type in mgcv::gam instead of "tp"?
The function s is defined with bs = "tp" as a default argument. There aren't any settings anywhere that can change this. Furthermore, you can't even define a wrapper of s because of how gam ...
How to functionalize base R function like `with()`?
You are on the right track with rlang::inject(). But note that the documentation states that You can use {{ arg }} with functions documented to support quosures. Otherwise, use !!enexpr(arg). So let’...
re-order factors on y axis of a gantt chart
The y axis is in alphabetical order, but factor ordering is such that earlier letters in the alphabet get the lowest values, so when these are plotted they are lower on the y axis. Therefore the order ...
See what's trending
View all trending questionsThese are the most active questions in R Language Collective
How to make a great R reproducible example
Sort (order) data frame rows by multiple columns
How do I replace NA values with zeros in an R dataframe?
Drop data frame columns by name
How to join (merge) data frames (inner, outer, left, right)
How to write a good R question with a reproducible example
Create multiple PDF/HTML reports using R Markdown in a loop
Simply submit a proposal, get it approved, and publish it.
See how the process works