powered by
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.
rmlastna(x)
A vector with a non-NA value as the last element
A vector
x <- rep(2, 20); y <- rep(NA, 10); z <- c(x, y); zx <- rmlastna(z);
Run the code above in your browser using DataLab