correct: Correct Character Vector

Description Usage Arguments Details Value Examples

Description

Substitute given characters or strings by their alternatives.

Usage

1
correct(x, type = c("varnames", "units"))

Arguments

x

A character vector.

type

A character string ("varnames" or "units"). It determines the specific corrections that are made based on which attributes are being corrected.

Details

String "(z-d)/L" is renamed to "zeta". Substitute:

using regular expression patterns.

Value

A corrected character vector.

Examples

1
correct(c("[m]", "qc_co2_flux", "(z-d)/L", "x_70%", "*[-(z-d)/L"))

grahamstewart12/tidyflux documentation built on June 4, 2019, 7:44 a.m.