NA2NaN: Translation of values from NA (not available) to NaN (not a...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/utilities.R

Description

Exchanges all occurrences of NA in a vector with NaN. A warning is issued when NAs or NaNs are found.

Usage

1
NA2NaN(k)

Arguments

k

numerical vector possibly containig NAs.

Value

Returns a vector where possible NAs have been changed to NaNs.

Author(s)

Kristian Hovde Liland

See Also

dLiland, Liland, Liland.test, simLiland

Examples

1
2
3
4
NA2NaN( c(0, 1, NA, NaN))
NA2NaN( c(0, 1, 2, NaN))
NA2NaN( c(0, 1, NA, 100))
NA2NaN( c(0, 1, 2, 100))

fixedTimeEvents documentation built on Jan. 4, 2022, 5:09 p.m.