https://github.com/cran/FedData
Raw File
Tip revision: 41ad97869fc1f041281409d158f533b16b5f7a5d authored by R. Kyle Bocinsky on 20 January 2016, 09:12:15 UTC
version 2.0.3
Tip revision: 41ad978
unwrap_rows.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/UTILITY_FUNCTIONS.R
\name{unwrap_rows}
\alias{unwrap_rows}
\title{Unwraps a matrix and only keep the first n elements.}
\usage{
unwrap_rows(mat, n)
}
\arguments{
\item{mat}{A matrix}

\item{n}{A numeric vector}
}
\value{
A logical vector of the same length as x
}
\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
}

back to top