Files
civilyticsR/man/na_zero.Rd

22 lines
384 B
R

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{na_zero}
\alias{na_zero}
\title{Zero out missing values}
\usage{
na_zero(x)
}
\arguments{
\item{x}{a numeric vector with missing values}
}
\value{
a numeric vector with missing values replaced by 0
}
\description{
Zero out missing values
}
\examples{
na_zero(1:10)
na_zero(c(NA, NA, 2:10))
}