getorderedconfignumbers: Creates an ordered vector of gauge config file numbers

View source: R/readutils.R

getorderedconfignumbersR Documentation

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.

Details

All filenames are assumend to have equal length.

Value

returns the ordered list of gauge config numbers as a numeric vector.

Author(s)

Carsten Urbach, curbach@gmx.de

See Also

readcmidatafiles, extract.obs

Examples

confignumbers <- getorderedconfignumbers(path=paste0(system.file(package="hadron"), "/extdata/"),
                               basename="testfile", last.digits=3, ending=".dat")
confignumbers

hadron documentation built on Sept. 9, 2022, 5:06 p.m.