Skip to contents

Mainly used for documenting the parser code.

Usage

nested_tibble_from_list(x)

Arguments

x

List which can be transformed to tibble using bind_rows

Value

List containing tibble created from x

Examples

library(tibble)
d <- list(list("a" = 1, "b" = "apple"), list("a" = 2, "b" = "banana"))
d
#> [[1]]
#> [[1]]$a
#> [1] 1
#> 
#> [[1]]$b
#> [1] "apple"
#> 
#> 
#> [[2]]
#> [[2]]$a
#> [1] 2
#> 
#> [[2]]$b
#> [1] "banana"
#> 
#> 
tb <- tibble(i = 1, j = nested_tibble_from_list(d))
tb
#> # A tibble: 1 × 2
#>       i j               
#>   <dbl> <list>          
#> 1     1 <tibble [2 × 2]>