R/replace.all.R

Defines functions replace.all

Documented in replace.all

#' \code{replace.all} is a wrapper around \code{replace}.
#'
#' @param x vector
#' @param what list of values to replace (usually one or more character strings)
#' @param value replacement value 
#' @return a vector with the values replaced.
replace.all <- function(x, what, value) {
	replace(x, which(x %in% what), value)
}
holstius/metfiles documentation built on May 17, 2019, 4:50 p.m.