knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(dplyr, warn.conflicts = FALSE)
ungroup()
in standard dplyr
res1 <- mtcars %>% group_by(cyl) %>% mutate(max_mpg = max(mpg))
strictlyr
for a noisy pipestrictlyr
includes a noisy pipe which shows a warning if the input or output
from a chain of operations has groups
library(strictlyr, warn.conflicts = FALSE)
ungroup()
when strictlyr
is loadedres1 <- mtcars %>% group_by(cyl) %>% mutate(max_mpg = max(mpg))
ungroup()
when strictlyr
is loaded, but it's told to be quietoptions(STRICTLYR_PIPE = 'quiet') res1 <- mtcars %>% group_by(cyl) %>% mutate(max_mpg = max(mpg))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.