last_values: Function to select last values

Description Usage Arguments Examples

Description

last_values() selects specified number of values from current moment back in time.

Usage

1
last_values(df, last, reso, tz)

Arguments

df

input data.frame.

last

numeric, optional argument to specify the number of latest values. If last is specified from and to need to be empty.

reso

numeric, desired output time resolution (in minutes). See Details for more information on data aggregation.

tz

specify the desired time zone. Default is "UTC".

Examples

1
2
3
4
5
## Not run: 
last_values(df = treenetdown:::df_last_values, last = 144,
            reso = 10)

## End(Not run)

treenet/treenetproc documentation built on June 16, 2021, 4:39 p.m.