unex: collapsing indices

Description Usage Arguments Value Examples

View source: R/f0.rbsb1.code.r

Description

Transforms multiple indices into a unique index following the storage order of array elements by R.

Usage

1
unex(xv, di, check=TRUE)

Arguments

xv

a N by K matrix, each row corresponding to uple of indices. each column must be a factor.

di

dimensions of the K indices

check

must be the consistency between the argument xv and di be checked?

Value

A vector of size N with the unique index values

Examples

1
2
3
 rbsb3k("RESET"); # needed only for R checking, to be forgotten
 uu <- rbsb.dfr1;
 print(cbind(uu, unex(uu, 3:4)));


rbsb documentation built on May 21, 2017, 12:21 a.m.
Search within the rbsb package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.