fn builtin_ncol_safe(
args: &[RValue],
_: &[(String, RValue)],
) -> Result<RValue, RError>Expand description
Get the number of columns, treating non-matrix vectors as 1-column.
Unlike ncol(), returns 1 instead of NULL for plain vectors.
@param x object to query @return integer scalar