sfn_multi_get_methods: sfn_data_multi get methods

sfn_multi_get_methodsR Documentation

sfn_data_multi get methods

Description

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

Usage

## 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

library(dplyr)


sapfluxnetr documentation built on Feb. 16, 2023, 7:52 p.m.