Closed vertesy closed 8 years ago
It looks like vectors cannot have NULL elements - so the issue is not with unlist, but with its vector output
c( a='', b=NULL, c='T')
a c
"" "T"
Lists can, but when unlisted to a vec, they lose the NULL element
list( a='', b=NULL, c='T')
as.vector does not do the job:
is(as.vector(list( a='', b=NULL, c='T')))
"A known issue is if a vector element is NULL, you lose it. Then the length of the vector"
unlist() has the same problem