read_data: Read input data files

Description Usage Arguments Details Value References Examples

View source: R/read_files.R

Description

Reads data files for usage of input data. Various file formats are supported.

Usage

1
2
read_data(data_in, data_dir, spat_col = c(NA, NA, 2), dat_col = 3,
  dat_tsf = 7, ...)

Arguments

data_in

Vector, containing the filename of the data to read.

spat_col

Vector, defines the columns of the statial coordinates in the stucture: vector(x, y, z). If not all dimensions are supplied, the corresponding entry has to be NA.

dat_col

Numeric, containing the number of the column which holds the measurment data.

...

additional parameters for reading .rData lines. (sep, dec, etc.).

input_dir

Vector, containing the directory of the file.

Details

If no columns are specified for spatial coordinates or data, the simplest 1d case is assumed, providing time, z and data. So far, input data is supported in the following file formats: .rData, .csv, .tsf.

Value

Returns a data.frame, consisting of a time series (time info and data).

References

Marvin Reich (2017), mreich@posteo.de

Examples

1

marcianito/hygra documentation built on Aug. 3, 2020, 7:47 p.m.