strip_suffix: Strip Positional Qualifier Suffix

View source: R/Data_handling.R

strip_suffixR Documentation

Strip Positional Qualifier Suffix

Description

Function removes from variable name the suffix with three indices representing horizontal and vertical placement and number of replicates (_H_V_R suffix used in tower network naming strategy).

Usage

strip_suffix(x, warn = FALSE)

Arguments

x

A string vector.

warn

A logical value

Details

If warn = TRUE, it is checked if multiple _H_V_R suffixes were detected. This might be undesired based on the application.

Value

A string vector with extracted variable codes.

Examples

x <- c("TA_1_1_1", "TS_1_1_1", "VPD")
strip_suffix(x)


lsigut/openeddy documentation built on Aug. 5, 2023, 12:25 a.m.