Learn R Programming

LSDinterface (version 1.2.2)

name.clean.lsd: 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 )

Value

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

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.

Author

Marcelo C. Pereira

Details

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

See Also

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

Examples

Run this code
name.clean.lsd( "Var1.1_1..1.100." )

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

Run the code above in your browser using DataLab