rmlastna: Delete trailing NA values from a vector

Description Usage Arguments Value Examples

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

1

Arguments

x

A vector

Value

A vector with a non-NA value as the last element

Examples

1
2
3
4
5
6
7
x <- rep(2, 20);

y <- rep(NA, 10);

z <- c(x, y);

zx <- rmlastna(z);

Ritc documentation built on May 2, 2019, 5:42 a.m.

Related to rmlastna in Ritc...