roptional
-
template<class RC>
class rcontainer_optional : public xoptional_assembly_base<rcontainer_optional<RC>>, public xcontainer_semantic<rcontainer_optional<RC>> Multidimensional container of optional values providing the xtensor container semantics to an R array.
rcontainer_optionalis not meant to be used directly, but through the aliasesrarray_optional<T>andrtensor_optional<T, N>.Depending on the value type, optional values are reference proxies on R’s
NA_INTEGER,NA_LOGICAL,NA_REAL,NA_STRING, orR_NilValue.Besides support for optionality,
rarray_optionalandrtensor_optionalare similar to the rarray and rtensor respectively, with respect to dynamic and static dimensionality.- Template Parameters:
T – The type of the element stored in the rarray.