load_mals: Load FFF-MALS data files with extension .txt

View source: R/load_mals.R

load_malsR Documentation

Load FFF-MALS data files with extension .txt

Description

Load FFF-MALS data files with extension .txt

Usage

load_mals(
  path,
  angles = mals_calib$theta,
  date_regex = "\\d{4}-\\d{2}-\\d{2}",
  date_format = "%Y-%m-%d",
  keywords = NULL,
  angle_names = "ls\\d+-\\d+",
  ...
)

Arguments

path

The relative path to the .txt input files.

angles

MALS detector angles.

date_regex

An optional regular expression for extracting dates from filenames.

date_format

An optional non-standard date format corresponding to the output of date_regex (see ?strptime).

keywords

An optional vector of pattern matches to pass to stringr::str_detect() that tell load_mals() which files to load. These can be regular expressions.

angle_names

A regular expression specifying the naming convention for MALS data files. The default is ⁠ls\\d+-\\d+⁠, or "ls" followed by the range of angles the file contains (e.g., "ls7-20").

...

Other arguments passed on to read_table()

Value

A tibble with the columns 'file', 'date', 'sample', 'param', 'time', and 'conc'.

Examples

path <- system.file("extdata/mals", package = "fffprocessr")
load_mals(path = path)

bentrueman/fffprocessr documentation built on June 23, 2024, 1:23 a.m.