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

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/readutils.R

Description

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

Usage

1
2
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.

Details

All filenames are assumend to have equal length.

Value

returns the ordered list of strings.

Author(s)

Carsten Urbach, curbach@gmx.de

See Also

readcmidatafiles, extract.obs

Examples

1
2
3
filelist <- getorderedfilelist(path=paste0(system.file(package="hadron"), "/extdata/"),
                               basename="testfile", last.digits=3, ending=".dat")
filelist

hadron documentation built on Jan. 13, 2021, 8 a.m.