write_fh: Write to a file in Heidelberg format

Description Usage Arguments

Description

write_fh, just as its dplR consistent equivalent write.fh, writes an rwl object to a file in Heidelberg (.fh) format. It currently only supports "Single format".

Usage

1
2
3
4
5
6
7
8
write_fh(
  rwl,
  path,
  data.format = c("Tree", "HalfChrono", "Chrono"),
  prec = 0.01,
  meta = NULL,
  append = FALSE
)

Arguments

rwl

a data.frame/rwl object such as returned e.g. by as.rwl.

path

a character vector specifying the path to the file where the data will be written, usually ending with ".fh".

data.format

DataFormat as specified by the definition of the Heidelberg format (either Tree, HalfChrono or Chrono). This is used for all series within the written object.

prec

numeric, indicating the precision of the output file. This must be equal to either 0.01 or 0.001 (units are in mm). This is used for all series within the written object.

meta

optional additional meta data. If a named vector is supplied, name value pairs are used as metadata for all series. Supply a list of named vectors to use different metadata for each individual series.

append

logical, indicating whether data should be appended to an existing file. Defaults to create a new file, overwriting a file in case it already exists.


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