https://github.com/cran/FedData
Raw File
Tip revision: ec6fb1cf6e009ff2cbdea0287158d33821578667 authored by R. Kyle Bocinsky on 17 March 2024, 00:40:03 UTC
version 4.0.1
Tip revision: ec6fb1c
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
}
\keyword{internal}
back to top