Find the class, type, mode and storage mode of the following values:
Inf
NA
NaN
""
That means creating sixteen objects:
class_
(e.g. class_Inf
, class_NA
etc.)type_
(e.g. type_NA
, type_NaN
etc.)mode_
(e.g. mode_Inf
, mode_NaN
etc.)storage_
(e.g. storage_NA
, storage_empty
etc.)The objects for the empty string ""
can have the suffix _empty
(e.g. class_empty
, type_empty
etc.). Beware of small and capital letters!
(from: Cotton, 2013, Learning R, O’Reilly)