Wrapper to nest a tibble from a list into parser result
Source:R/utils.R
nested_tibble_from_list.Rd
Mainly used for documenting the parser code.
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]>