Skip to main content

builtin_nrow_safe

Function builtin_nrow_safe 

Source
fn builtin_nrow_safe(
    args: &[RValue],
    _: &[(String, RValue)],
) -> Result<RValue, RError>
Expand description

Get the number of rows, treating non-matrix vectors as 1-column matrices.

Unlike nrow(), returns the vector length instead of NULL for plain vectors.

@param x object to query @return integer scalar