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
How to include a topics filter in the oa_fetch function from the openalexR package?
how to add dependency stock indicators in highcharter package
Sending emails through local proxy
How to implement an anisotropic Gaussian filter with position-dependent σ from a viewing angle raster?
RStudio not finding RTools installed different location
Recommended answers
View all recommended answersThese answers have been recommended
Add rtf files to docx with body_add_docx
I don't see any evidence that the officer package used to allow you to combine rtf and docx files. It looks like you do have to convert rtf to docx with something like pandoc. You can do that with ...
Correct grouping of stacked bars with color and pattern fill
Add group = interaction(party, consequence, lex.order = TRUE) to aes(): ggplot(df, aes(x = year, y = n, fill = party, group = interaction(party, consequence, lex.order = TRUE))) + ...
How to calculate sum of subsequent rows in a dataframe changing the reference row under condition
Using purrr::accumulate to find the anchor_date based on your logic (if more than 28 days, use that): library(dplyr) df %>% mutate(date_ric = as.Date(date_ric)) %>% arrange(ID, date_ric, ....
How can I position_dodge individual points within a grouped boxplot using ggplot2
I like stefan's solution, but if you wanna stick to your filtering approach, you need to manually define the position: df %>% ggplot(aes(x = Grouping1,y = Var2)) + geom_violin(data = . %>% ...
Weird behaviour when combining data.table .EACHI and joining
I think your expectation of .EACHI is correct, but "which" frame is i is skewed. Your join is this: treated[i = untreated, j = .(exposed.id, ...), on = .(cov), by = .EACHI, nomatch = NULL] ...
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