Learn R Programming

hadron (version 3.1.2)

getorderedconfignumbers: Creates an ordered vector of gauge config file numbers

Description

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

Usage

getorderedconfignumbers(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 gauge config numbers as a numeric vector.

Details

All filenames are assumend to have equal length.

See Also

readcmidatafiles, extract.obs

Examples

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

Run the code above in your browser using DataLab