Description Usage Arguments Value Examples
Unnest R calls
1 | unnest_calls(.data, input, drop = TRUE)
|
.data |
A data frame |
input |
Input column that contains an R call or list of R calls to be split into individual functions |
drop |
|
The original data frame with an additional three columns:
line
: the line number of the call
func
: the name of the function called
args
: a list of arguments
1 2 3 4 5 6 7 8 9 | d <- read_rfiles(tidycode_example("example_plot.R"))
# Unnest a model call
d %>%
unnest_calls(expr)
# Unnest a model call and keep the call itself using the drop parameter
d %>%
unnest_calls(expr, drop = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.