mat_safely_unnest: Unest safely

View source: R/safely.R

mat_safely_unnestR Documentation

Unest safely

Description

Unest safely

Usage

mat_safely_unnest(df, col_name, result_name = "result")

Arguments

df

data

col_name

which column contains the safely output?

result_name

How to call output column with result?

Examples

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)


MatthieuStigler/matPkg documentation built on Sept. 19, 2024, 5:19 a.m.