Skip to content

Allow for NULL in list column when unnesting? #436

@kendonB

Description

@kendonB
library(tidyverse)
tibble(list = list(NULL, tibble(x = 1))) %>% 
  unnest()
#> Error: Each column must either be a list of vectors or a list of data frames [list]

I would have expected:

#> # A tibble: 2 x 1
#>       x
#>   <dbl>
#> 1 NA   
#> 2  1.00

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancementrectangling 🗄️converting deeply nested lists into tidy data frames

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions