Files
civilyticsR/man/safe_max.Rd
T
2020-07-06 11:48:10 -04:00

24 lines
432 B
R

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{safe_max}
\alias{safe_max}
\title{Safe maximum
Take the max but ignore missing values}
\usage{
safe_max(x)
}
\arguments{
\item{x}{a numeric vector which may contain NA values}
}
\value{
the maximum non-missing value
}
\description{
Safe maximum
Take the max but ignore missing values
}
\examples{
safe_max(1:10)
safe_max(c(1:10, NA))# 10
}