R/map.R

map <-
function(x,from,to,strict=TRUE,...){
	stopifnot(length(to)==length(from))
	res <- to[match(x,table=from)]
	if(!strict) res[!(x %in% from)] <- x[!(x %in% from)]
	res
}

Try the metrumrg package in your browser

Any scripts or data that you put into this service are public.

metrumrg documentation built on May 2, 2019, 5:55 p.m.