raw.findFiles: returns a list of files provided the search criteria

View source: R/raw.findFiles.R

raw.findFilesR Documentation

returns a list of files provided the search criteria

Description

returns a list of files provided the search criteria

Usage

raw.findFiles(
  pfad,
  project = "[^_]+",
  date = "[^_]+",
  user = "[^_]+",
  instrument = "[^_]+",
  sample = "[^_]+",
  md5 = "",
  fullPath = TRUE,
  recursive = FALSE
)

Arguments

pfad

path of RAW files

project

name of project

date

date in format YYYYMMDD

user

2 initials for user

instrument

name of instrument, such as 'vsm'

sample

sample name

md5

single string with comma separated abbreviated MD5 sums

fullPath

if TRUE, returns full path, otherwise filename only

recursive

if TRUE, also searchs subfolders

Value

list with filenames with certain checksum

Examples

pfad = raw.getSamplePath()
file.list = raw.findFiles(pfad, date='201606')  # all files from June 2019
print(basename(file.list))
md5String = raw.getMD5str(file.list)
file.list = raw.findFiles(pfad, md5 = md5String)
print(basename(file.list))

thomasgredig/RAWdataR documentation built on Nov. 6, 2024, 9:46 a.m.