R/number.suffix.R

number.suffix <-
function (x) 
{
    if (!is.vector(x, mode = "numeric")) 
        stop("'x' must be a numeric vector")
    if (any(is.na(x))) 
        stop("Missing values not allowed in 'x'")
    n <- length(x)
    ret.vec <- character(n)
    for (i in 1:n) ret.vec[i] <- number.suffix.scalar(x[i])
    ret.vec
}

Try the EnvStats package in your browser

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

EnvStats documentation built on Aug. 22, 2023, 5:09 p.m.