mat_safely_unnest | R Documentation |
Unest safely
mat_safely_unnest(df, col_name, result_name = "result")
df |
data |
col_name |
which column contains the safely output? |
result_name |
How to call output column with result? |
library(purrr)
library(dplyr)
df <- data.frame(a=c(1, NA, -2))
df_out <- mutate(df, out= map(a, ~safely(~log2(., arg = FALSE))(.)))
mat_safely_unnest(df_out, out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.