You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was investigating the implementation of a list_of vector. For that I studies the poly example. I was interested in understanding how NA values should be handled. I tried two different ways of creating a vector with NA (see below) and they ended with different lists. Once with a NULL element and once with a NA_integer_, this results in quite different behavior both for printing and detecting NA's. From the behaviour it seems the NULL version is more like I would expect. However then this should be probably printing NA or missing. This might not really be an issue with the package code but more profit form the best practice being included in the documentation.
I was investigating the implementation of a
list_of
vector. For that I studies thepoly
example. I was interested in understanding howNA
values should be handled. I tried two different ways of creating a vector withNA
(see below) and they ended with different lists. Once with aNULL
element and once with aNA_integer_
, this results in quite different behavior both for printing and detectingNA
's. From the behaviour it seems theNULL
version is more like I would expect. However then this should be probably printingNA
or missing. This might not really be an issue with the package code but more profit form the best practice being included in the documentation.The text was updated successfully, but these errors were encountered: