unwrap_rows: Unwraps a matrix and only keep the first n elements.

unwrap_rowsR Documentation

Unwraps a matrix and only keep the first n elements.

Description

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

Usage

unwrap_rows(mat, n)

Arguments

mat

A matrix

n

A numeric vector

Value

A logical vector of the same length as x


ropensci/FedData documentation built on April 12, 2024, 11:44 a.m.