mschubert / narray

R package for subset- and name-aware array utility functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stack(drop=T) fails if first (any?) element is empty

mschubert opened this issue · comments

The line below should work:

narray::stack(list(c(), setNames(1:5, letters[1:5])), along=2, keep_empty=T)
# Error in array(x, c(length(x), 1L), if (!is.null(names(x))) list(names(x),  :
#  'data' must be of a vector type, was 'NULL'