njtierney / naniar

Tidy data structures, summaries, and visualisations for missing data
http://naniar.njtierney.com/
Other
651 stars 53 forks source link

Feature/list column #291

Closed cregouby closed 1 year ago

cregouby commented 3 years ago

Description

Add support of list column missing value in shade

Related Issue

fix #277 visdat::vis_miss() dependancy will be fixed by https://github.com/ropensci/visdat/pull/138

Example

> star_1 <- starwars %>% select(vehicles, starships) %>%  sample_n(6)
> nabular(star_1)
# A tibble: 6 × 4
  vehicles  starships vehicles_NA starships_NA
  <list>    <list>    <fct>       <fct>       
1 <chr [0]> <chr [0]> NA          NA          
2 <chr [0]> <chr [0]> NA          NA          
3 <chr [0]> <chr [0]> NA          NA          
4 <chr [0]> <chr [2]> NA          !NA         
5 <chr [0]> <chr [0]> NA          NA          
6 <chr [0]> <chr [0]> NA          NA          

Tests

two tests are added in test-shade.R

✓ | 12 | test-shade.R

NEWS + DESCRIPTION

## New features

- naniar now supports list-columns
njtierney commented 1 year ago

Thank you @cregouby ! :rocket: