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

View source: R/readutils.R

getorderedfilelistR Documentation

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.

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


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


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