berndbischl / BBmisc

Other
20 stars 7 forks source link

namedList with no args should really be named #58

Closed berndbischl closed 7 years ago

berndbischl commented 8 years ago

currently it simply creates list() but not namedList

jakobbossek commented 8 years ago

Hmm, how do you want to realize this? How to name an empty list?

berndbischl commented 8 years ago

x = setNames(list(), character(0))

that is (unfortunately?) not the same as list()

in R you can create an empty list, which is a "named list". look at both objects with str()

and:

for names(list()) the result is NULL, for the code in the 1st line it is char(0)

berndbischl commented 7 years ago

@jakob-r already fixed this, i clarified docs