Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

dplyr::add_row to nested tible in tidyr 1.0.0

$
0
0

In a former version of tidyr I was able to add rows to a nested tibble using dplyr::add_row. After updating to version 1.0.0 I get the following error:

Error: levels.vctrs_list_of() not supported.

library(dplyr, warn.conflicts = FALSE)
library(tidyr)

mtcars %>% 
  tidyr::nest(data = dplyr::select(., -cyl) %>% colnames) %>% 
  dplyr::add_row(cyl = "all cyl", data = NA)
#> Error: `levels.vctrs_list_of()` not supported.

Created on 2020-01-17 by the reprex package (v0.3.0)

Are other users experiencing the same or is this specific to my system environment? Do I need to update other packages to get this running? Is there a workaround? Should I open an issue on Github?


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>