cmps_na_trim: Remove the leading and trailing missing values in a numeric...

View source: R/get_ccf4.R

cmps_na_trimR Documentation

Remove the leading and trailing missing values in a numeric vector

Description

Remove the leading and trailing missing values in a numeric vector

Usage

cmps_na_trim(x)

Arguments

x

numeric vector

Value

a numeric vector; only the leading and trailing missing values are removed

Examples

x <- c(NA, 1, 2, 3, 4, NA)
cmps_na_trim(x)

cmpsR documentation built on July 18, 2022, 9:07 a.m.