Description Usage Arguments Details Value Examples
proc_L1
aligns raw dendrometer and raw temperature data to
regular time steps.
1 2 3 4 5 6 7 8 | proc_L1(
data_L0,
reso = 10,
input = "long",
date_format = "%Y-%m-%d %H:%M:%S",
year = "asis",
tz = "UTC"
)
|
data_L0 |
input |
reso |
numeric, desired output time resolution (in minutes). See
|
input |
character, specify the structure of the input data
( |
date_format |
character, specify a custom date format if it is not
|
year |
character, if |
tz |
specify the desired time zone. Default is |
Data of multiple sensors can either be in long
format (input = "long"
) with a column named series
to
differentiate the sensors or in wide
format (input = "wide"
)
with sensors in separate columns. If temperature data is provided
in the same data.frame
as dendrometer data, the name of the
temperature sensor must contain the string temp
. See the following
vignette for examples of input data:
vignette("Introduction-to-treenetproc", package = "treenetproc")
.
The time-alignment uses a linear interpolation between the two closest
measurement points in the raw dataset to obtain the values at the
specified time resolution. The linear interpolation is restricted to gaps
that are smaller than 2.1 * reso
(i.e. two timestamps). If data is
already provided at regular time steps, the corresponding values are
selected.
a data.frame
with measurements aligned to regular time
intervals (interval specified in reso
) containing the following
columns:
series |
name of the series. |
ts |
timestamp with format |
value |
dendrometer value. |
version |
package version number. |
1 2 3 4 5 | # Input data in 'long' format
proc_L1(data_L0 = dendro_data_L0)
# Input data in 'wide' format
proc_L1(data_L0 = dendro_data_L0_wide, input = "wide")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.