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 character vector, 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 character vector of with the same attributes as x (after possible coercion).
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(LSDinterface)
Loading required package: abind
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/LSDinterface/name.var.lsd.Rd_%03d_medium.png", width=480, height=480)
> ### Name: name.var.lsd
> ### Title: Get original LSD variable name
> ### Aliases: name.var.lsd
> ### Keywords: ~kwd1 ~kwd2
>
> ### ** Examples
>
> name.var.lsd("label")
[1] "label"
>
> name.var.lsd(c("label", "X_underlinelabel"))
[1] "label" "_underlinelabel"
>
>
>
>
>
> dev.off()
null device
1
>