mirror of
https://github.com/agdamsbo/stRoke.git
synced 2024-11-23 21:40:22 +01:00
26 lines
472 B
R
26 lines
472 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/chunks_of_n.R
|
|
\name{n_chunks}
|
|
\alias{n_chunks}
|
|
\title{Splits in n chunks}
|
|
\usage{
|
|
n_chunks(d, n, ...)
|
|
}
|
|
\arguments{
|
|
\item{d}{data}
|
|
|
|
\item{n}{number of chunks}
|
|
|
|
\item{...}{arguments passed to internal \code{chunks_of_n()}}
|
|
}
|
|
\value{
|
|
List of chunks
|
|
}
|
|
\description{
|
|
Splits in n chunks
|
|
}
|
|
\examples{
|
|
lengths(n_chunks(d=seq_len(100),n=7,even=TRUE))
|
|
lengths(n_chunks(d=seq_len(100),n=7,even=FALSE))
|
|
}
|