name.r.unique.lsd | R Documentation |
This function produces a valid and unique variable name from names produced from multi-instanced LSD variables (as in read.raw.lsd
).
name.r.unique.lsd( r.name )
r.name |
a string, a vector of strings, or an object which can be coerced to a character vector by |
The function removes the trailing '.' characters, and the text between, introduced during the conversion from LSD results files, add an 'X' prefix to names started by an '_'. After this initial transformation, all repeated variable names (originated from multi-instanced variables) are removed.
The produced names are R valid variable names, similar to the original LSD/C++ variable names, but with an 'X' prepended to variables starting with an '_' (which are invalid in R).
A string or a string vector of converted string(s) including only non-repeated ones.
Marcelo C. Pereira
name.var.lsd()
,
name.clean.lsd()
,
name.nice.lsd()
,
info.names.lsd()
name.r.unique.lsd( "Var1.1_1.1_100" ) name.r.unique.lsd( c( "Var1.1_1.1_100", "_Var2.1_1.1_100", "_Var2.1_2.50_70" ) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.