% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GRCFE.R
\name{modp}
\alias{modp}
\title{Reduce values modulo s}
\usage{
modp(x, s)
}
\arguments{
\item{x}{Numeric vector, matrix, or array.}

\item{s}{Integer modulus.}
}
\value{
\code{x} reduced to the range \code{0, ..., s - 1}.
}
\description{
Reduce values modulo s
}
\keyword{internal}
