name.var.lsd: Get original LSD variable name

View source: R/vars.R

name.var.lsdR Documentation

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 )

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 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.

Value

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

Author(s)

Marcelo C. Pereira

See Also

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

Examples

name.var.lsd( "label" )

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

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