sfn_multi_get_methods: sfn_data_multi get methods

Description Usage Arguments Details Examples

Description

Methods to get the data and metadata from the sfn_data class slots

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
## S4 method for signature 'sfn_data_multi'
get_sapf_data(object, solar = FALSE)

## S4 method for signature 'sfn_data_multi'
get_env_data(object, solar = FALSE)

## S4 method for signature 'sfn_data_multi'
get_sapf_flags(object, solar = FALSE)

## S4 method for signature 'sfn_data_multi'
get_env_flags(object, solar = FALSE)

## S4 method for signature 'sfn_data_multi'
get_timestamp(object)

## S4 method for signature 'sfn_data_multi'
get_solar_timestamp(object)

## S4 method for signature 'sfn_data_multi'
get_si_code(object)

## S4 method for signature 'sfn_data_multi'
get_site_md(object, collapse = FALSE)

## S4 method for signature 'sfn_data_multi'
get_stand_md(object, collapse = FALSE)

## S4 method for signature 'sfn_data_multi'
get_species_md(object, collapse = FALSE)

## S4 method for signature 'sfn_data_multi'
get_plant_md(object, collapse = FALSE)

## S4 method for signature 'sfn_data_multi'
get_env_md(object, collapse = FALSE)

Arguments

object

Object of class sfn_data_multi from which data or metadata is retrieved

solar

Logical indicating if the timestamp to return in the get_sapf_data, get_env_data, get_sapf_flags and get_env_flags methods is the solarTIMESTAMP (TRUE) or the contributors provided TIMESTAMP (FALSE)

collapse

Logical indicating if the metadata get methods must collapse the returning list to a data frame with all sites

Details

get_sapf_data and get_env_data methods retrieve sapflow or environmental tibbles from the sfn_data objects contained in the sfn_data_multi and return them in a list.

get_sapf_flags and get_env_flags methods retrieve sapflow or environmental flags tibbles from the sfn_data objects contained in the sfn_data_multi and return them in a list.

get_timestamp and get_solar_timestamp methods retrieve only the timestamps as POSIXct vectors and return them as a list (each element corresponding to a site in the sfn_data_multi object).

get_si_code method retrieve a character vector with length(timestamp) containing the site code for each site, returning them as a list.

get_site_md, get_stand_md, get_species_md, get_plant_md and get_env_md methods retrieve the corresponding metadata objects for each site returning them as a list, unless collapse is TRUE, then the list collapses to a tibble.

Examples

1
library(dplyr)

sapfluxnetr documentation built on Aug. 28, 2020, 1:13 a.m.