load_uv: Load FFF-UV-MALS data files with extension .txt

View source: R/load_uv.R

load_uvR Documentation

Load FFF-UV-MALS data files with extension .txt

Description

Load FFF-UV-MALS data files with extension .txt

Usage

load_uv(
  path,
  nm1 = "X2",
  nm2 = "X4",
  nm3 = "X6",
  date_regex = "\\d{4}-\\d{2}-\\d{2}",
  date_format = "%Y-%m-%d",
  keywords = NULL,
  ...
)

Arguments

path

Relative path to the .txt input files.

nm1

Name of column 2 in the input files.

nm2

Name of column 4 in the input files.

nm3

Name of column 6 in the input files.

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_uv() which files to load. These can be regular expressions.

...

Other arguments passed on to read_table()

Value

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

Examples

path <- system.file("extdata", package = "fffprocessr")
load_uv(path = path, UV254_1, UV254_2, LS90)

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