Creates an indicator matrix from a grouping vector.
indmat(grp.vec, K = length(unique(grp.vec)))
Numeric vector giving the group membership.
Scalar indicating the number of groups. Defaults to the number of
unique elements in grp.vec.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.