R/UTILITY_FUNCTIONS.R

unwrap_rows.Rd

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

unwrap_rows(mat, n)

A matrix

A numeric vector

A logical vector of the same length as x