rmlastna {Ritc} | R Documentation |
Delete trailing NA values from a vector
Description
If there are NA values at the end of a vector, this function deletes them and returns the rest of the vector. This is used to clean up the data imported from Origin7 data sheets.
Usage
rmlastna(x)
Arguments
x |
A vector |
Value
A vector with a non-NA value as the last element
Examples
x <- rep(2, 20);
y <- rep(NA, 10);
z <- c(x, y);
zx <- rmlastna(z);
[Package Ritc version 1.0.2 Index]