rwl_subout: rwl_subout

Description Usage Arguments

View source: R/dating.R

Description

This function takes an rwl object as well as a csv as input and subsets the rwl by the identifiers given in the first column of the csv. The subset as well as the remaining series are saved to disk as rwl file using the basename of the path provided with argument subset or as specified by out.nam.

Usage

1
2
3
4
5
6
7
8
9
rwl_subout(
  rwl.file,
  subset,
  header = FALSE,
  out.nam = NULL,
  write.missing = FALSE,
  site.only = FALSE,
  stc = c(3, 4, 1)
)

Arguments

rwl.file

a path to an rwl file (tucson format).

subset

a path to a csv file containing series names (or site IDs if site.only == TRUE) in the first column.

header

logic, indicates if subset csv file has column names

out.nam

character, optional string used for output file naming.

write.missing

logic, if write.missing == TRUE an output csv is written containing series identifiers missing in rwl

site.only

logic, if TRUE the subset is done based on the site specification in stc

stc

parameter as defined in read.ids, only used if site.only == TRUE.


konradmayer/trlboku documentation built on July 3, 2020, 9:49 p.m.