Learn R Programming

hadron (version 3.1.2)

getorderedfilelist: Creates an ordered filelist from a basename and a path

Description

These functions generate an ordered filelist and an order list of config numbers by using a path and a basename and '*'.

Usage

getorderedfilelist(path = "./", basename = "onlinemeas", last.digits = 4,
  ending = "")

Arguments

path

the path to be searched

basename

the basename of the files

last.digits

the number of last characters in each filename to be used for ordering the list.

ending

the file extension after the digits.

Value

returns the ordered list of strings.

Details

All filenames are assumend to have equal length.

See Also

readcmidatafiles, extract.obs

Examples

Run this code
# NOT RUN {
filelist <- getorderedfilelist(path=paste0(system.file(package="hadron"), "/extdata/"),
                               basename="testfile", last.digits=3, ending=".dat")
filelist

# }

Run the code above in your browser using DataLab