TSA_data_import: Return data frame or a list of data frames with the daily...

Description Usage Arguments Details Value Author(s) Examples

View source: R/TSA_data_import.R

Description

Give a data.frame, a list or a character of location-names and the function returns a data frame or a list of data frames with daily aggregated data for each location.

Usage

1
2
TSA_data_import(con, inventory, time_b = "1950-01-01 00:00:00+00",
  time_e = "2050-01-01 00:00:00+00")

Arguments

con

Connection to Permafrost data base

inventory

A data frame with a column "name", a list or a character containing all the location names from which the data should be imported

time_b

Begin date for the import. Format: "1950-01-01 00:00:00+00"

time_e

End date for the import. Format: "2050-01-01 00:00:00+00"

Details

The default settings are set as to import the whole dataset of a location. By adjusting the time_b and time_e parameters also only single years or winter periods can be imported.

Value

List of data fames with the following fields: Location name as loc_name; Observation height/depth as height [m]; Mean daily GST as agg_avg [C]; Number of daily observations as agg_cnt; Minimum daily GST as agg_min [C]; Maximum daily GST as agg_max [C]; Mean daily standard deviation as agg_sd; Date as time (in POSIXct and the following format: YYYY-MM-DD);

Author(s)

Thomas Knecht <t.knecht@hotmail.com>

Examples

1
2
con <- dbpf_con()
BC_SO01_01 <- TSA_data_import(con, "BC16-SO01_01")

geocryology/PermafrostTools documentation built on Dec. 20, 2021, 10:40 a.m.