A function that unwraps a matrix and only keeps the first n elements
n can be either a constant (in which case it will be repeated), or a vector
A numeric vector
A logical vector of the same length as x
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.