name.nice.lsd {LSDinterface}R Documentation

Get a nice (R) variable name

Description

This function produces a nicer variable name from R initial column name conversion, in particular removing leading underscores.

Usage

name.nice.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 and deletes leading underscores ('_'), converted to 'X_' by R.

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.clean.lsd(), info.names.lsd()

Examples

name.nice.lsd( "X_Var1.1_1..1.100." )

name.nice.lsd( c( "_Var1.1_1..1.100.", "X_Var2.1_2_3..50.70." ) )

name.nice.lsd( c( "_Var1", "X_Var2" ) )

[Package LSDinterface version 1.2.2 Index]