formatCNA: formatC with custom NA-string

Description Usage Arguments Value See Also Examples

View source: R/formatCNA.R

Description

Allows to use a custom NA-string in formatC instead of the defaults ‘NA’.

Usage

1
formatCNA(x, naStr = "", ...)

Arguments

x

vector to be formatted, normally numeric

naStr

NA-value to be used, character

...

other arguments for formatC

Value

character vector, formatted vector x with NA-s replaced by naStr

See Also

formatC

Examples

1
2
x <- c(log(10), NA)
formatCNA(x, "-")  # replace NA by '-'

otoomet/statClasses documentation built on Dec. 13, 2021, 8:15 a.m.