Learn R Programming

LSDinterface (version 1.2.2)

info.names.lsd: Read unique variable names from a LSD results file (no duplicates)

Description

This function reads the variable names (columns) from a LSD results file (.res). The names returned are converted to the original LSD names whenever possible and duplicates are removed.

Usage

info.names.lsd( file )

Value

Returns a character vector containing the names of all unique variables contained in the selected results file.

Arguments

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, getwd(). Tilde-expansion is performed where supported. This can be a compressed file (see file) and must include the appropriated extension (usually .res or .res.gz).

Author

Marcelo C. Pereira

See Also

list.files.lsd() info.details.lsd(), info.init.lsd() info.dimensions.lsd()

Examples

Run this code
# get the list of file names of example LSD results
files <- list.files.lsd( system.file( "extdata", package = "LSDinterface" ) )

# get variable names from first file
info.names.lsd( files[ 1 ] )

Run the code above in your browser using DataLab