Learn R Programming

LSDinterface (version 1.2.2)

name.var.lsd: Get original LSD variable name

Description

This function generates the original LSD variable name, as it was defined in LSD and before R adjusts the name, from a R column name (with or without position or timing information appended).

Usage

name.var.lsd( r.name )

Value

A string or a string vector with the same attributes as x (after possible coercion).

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 conversion may be incorrect if the original LSD variable is named in the format "X_...". No checking is done to make sure the variable really exists.

See Also

name.clean.lsd(), info.names.lsd()

Examples

Run this code
name.var.lsd( "label" )

name.var.lsd( c( "label", "X_underlinelabel" ) )

Run the code above in your browser using DataLab