.accumulated_posix_aware {sapfluxnetr}R Documentation

accumulated function

Description

sum for summarise_all aware of POSIX objects

Usage

.accumulated_posix_aware(variable, na.rm = FALSE)

Arguments

variable

the variable as it is passed to the .fixed_metrics function

na.rm

logical to pass to na.rm argument from sum

Value

the sum for any other variables, but the first for POSIXct variables

Examples

sapfluxnetr:::.accumulated_posix_aware(c(50,20))
sapfluxnetr:::.accumulated_posix_aware(c(Sys.time(), Sys.time() -1))


[Package sapfluxnetr version 0.1.4 Index]