This function produces a more appropriate variable name from R initial column name conversion.
Usage
name.clean.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 function removes the extra/ending '.' characters introduced by R and introduces a '_' between time span values.
Value
A character vector of with the same attributes as x (after possible coercion) and the format "NAME.POSITION.INI_END".
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.clean.lsd.Rd_%03d_medium.png", width=480, height=480)
> ### Name: name.clean.lsd
> ### Title: Get clean (R) variable name
> ### Aliases: name.clean.lsd
> ### Keywords: ~kwd1 ~kwd2
>
> ### ** Examples
>
> name.clean.lsd("Var1.1_1..1.100.")
[1] "Var1.1_1.1_100"
>
> name.clean.lsd(c("Var1.1_1..1.100.", "Var2.1_2_3..50.70."))
[1] "Var1.1_1.1_100" "Var2.1_2_3.50_70"
>
>
>
>
>
> dev.off()
null device
1
>