name.check.lsd | R Documentation |
This function checks if all variable names in a set are valid for a LSD results file (.res). If no name is provided, the function returns all the valid unique variable names in the file.
name.check.lsd( file, col.names = NULL, check.names = TRUE )
file |
the name of the LSD results file which the data are to be read from. If it does not contain an absolute path, the file name is relative to the current working directory, |
col.names |
a vector of optional names for the variables. The default is to read all (unique) variable names. |
check.names |
logical. If |
Returns a string vector containing the (original) valid variable names contained in the results file, using LSD/C++ naming conventions.
Marcelo C. Pereira
list.files.lsd()
info.names.lsd()
,
# get the list of file names of example LSD results
files <- list.files.lsd( system.file( "extdata", package = "LSDinterface" ) )
# check all variable names
name.check.lsd( files[ 1 ] )
# check just two names
name.check.lsd( files[ 2 ], col.names = c( "GDP", "_growth1" ) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.