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.
R Language Frequently Asked Questions
How to write a good R question with a reproducible example
Can you answer these questions?
View all unanswered questionsThese questions still don't have an answer
How can I programmatically determine the imports for an R function?
R package installation error - gfortran giving 'no input files' error
Removing outside border line in R map
How to instantiate R6 class programmatically?
Alphabetical ordering of y-axis in complex ggplot2
Recommended answers
View all recommended answersThese answers have been recommended
data.table programming with variable columns
The I(..) portion within env= is used "to escape automatic conversion" (https://rdatatable.gitlab.io/data.table/articles/datatable-programming.html#substitute-variables-and-character-values),...
Build forest plot for estimate comparison of multiple models using ggplot2. How to add text of CI?
It takes quite a lot of placing of graphical elements to get you from a basic ggplot to a labelled forest plot. Your two-level grouping (model and parameter) also means that whatever output you are ...
Creating a unique animal identifier using multiple id columns some with missing data [duplicate]
How about grouping by species, ear_tag, and pit_tag, and assign the current group id? Starting with your df with its "animal_id", we can easily reproduce it with: library(dplyr) df <- ...
R geom_contour_filled date scale
One option would be to pass a function to the labels= argument of the scale to convert the interval boundaries to date labels in your desired format: library(tidyverse) ggplot(predictions) + aes(x =...
step_rename does not work like dplyr::rename
It appears that step_rename doesn't honor the named-shortcut supported by any_of and dplyr::rename. (This is further suggested by the step_*_at functions which mimic since-superseded mechanisms in ...
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