name.clean.lsd: Get clean (R) variable name

View source: R/vars.R

name.clean.lsdR Documentation

Get clean (R) variable name

Description

This function produces a more appropriate variable name from R initial column name conversion.

Usage

name.clean.lsd( r.name )

Arguments

r.name

a string, a vector of strings, or an object which can be coerced to a character vector by as.character, from the column names produced by reading a LSD results file.

Details

The function removes the extra/ending '.' characters introduced by R and introduces a '_' between time span values.

Value

A string or a string vector with the same attributes as x (after possible coercion) and the format NAME.POSITION.INI_END.

Author(s)

Marcelo C. Pereira

See Also

name.var.lsd(), name.nice.lsd(), info.names.lsd()

Examples

name.clean.lsd( "Var1.1_1..1.100." )

name.clean.lsd( c( "Var1.1_1..1.100.", "Var2.1_2_3..50.70." ) )

LSDinterface documentation built on May 14, 2022, 1:05 a.m.