Skip to contents

This is handy for using shiny::renderTable() with list type columns

Usage

.list_col_to_chr(data)

Arguments

data

A data frame

Value

data, except list type columns that contain atomic vectors are now character

Examples

df <- tibble::tibble('ls' = list('a', 'b'), 'num' = 1:2)
faketables:::.list_col_to_chr(df)
#> # A tibble: 2 × 2
#>   ls       num
#>   <chr>  <int>
#> 1 c('a')     1
#> 2 c('b')     2