fn builtin_array_ind(
args: &[RValue],
_: &[(String, RValue)],
) -> Result<RValue, RError>Expand description
Convert linear indices to array (row, col) subscripts.
Given a vector of 1-based linear indices and a dimension vector, returns a matrix of subscripts (one row per index, one column per dim).
@param ind integer vector of linear indices (1-based) @param .dim integer vector of dimensions (e.g. c(nrow, ncol)) @return integer matrix of subscripts