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.
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.