sfn_replacement_methods: sfn_data replacement methods

Description Usage Arguments Details Examples

Description

Methods to replace 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 replacement method for signature 'sfn_data'
get_sapf_data(object) <- value

## S4 replacement method for signature 'sfn_data'
get_env_data(object) <- value

## S4 replacement method for signature 'sfn_data'
get_sapf_flags(object) <- value

## S4 replacement method for signature 'sfn_data'
get_env_flags(object) <- value

## S4 replacement method for signature 'sfn_data'
get_timestamp(object) <- value

## S4 replacement method for signature 'sfn_data'
get_solar_timestamp(object) <- value

## S4 replacement method for signature 'sfn_data'
get_si_code(object) <- value

## S4 replacement method for signature 'sfn_data'
get_site_md(object) <- value

## S4 replacement method for signature 'sfn_data'
get_stand_md(object) <- value

## S4 replacement method for signature 'sfn_data'
get_species_md(object) <- value

## S4 replacement method for signature 'sfn_data'
get_plant_md(object) <- value

## S4 replacement method for signature 'sfn_data'
get_env_md(object) <- value

Arguments

object

sfn_data containing the slot to replace

value

object with the data to replace snf_Data slot with

Details

The replacement object must be a valid object for that slot:

Validity is automatically checked before modifing the sfn_data object, and an error is raised if not valid

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# preparation
data('ARG_TRE', package = 'sapfluxnetr')
sapf_data <- get_sapf_data(ARG_TRE, solar = TRUE)

# modifying the slot data
sapf_data[1:10, 2] <- NA

# replacement. Remember, the sfn_data slot does not contain a TIMESTAMP
# variable, it must be removed
get_sapf_data(ARG_TRE) <- sapf_data[,-1]

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