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

Description Usage Arguments Value

View source: R/UTILITY_FUNCTIONS.R

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

1
unwrap_rows(mat, n)

Arguments

mat

A matrix

n

A numeric vector

Value

A logical vector of the same length as x


FedData documentation built on May 20, 2017, 5:39 a.m.

Search within the FedData package
Search all R packages, documentation and source code