corr_dendro_L1: Manually Correct Time-Aligned Dendrometer Data

Description Usage Arguments Value See Also Examples

View source: R/corr_dendro_L1.R

Description

corr_dendro_L1 deletes periods of erroneous dendrometer or temperature data. The function takes time-aligned (L1) dendrometer or temperature data as input. Values are overwritten with NA without further notice.

Usage

1
2
3
4
5
6
7
8
corr_dendro_L1(
  dendro_L1,
  delete,
  series = NULL,
  plot = TRUE,
  plot_export = TRUE,
  tz = "UTC"
)

Arguments

dendro_L1

time-aligned dendrometer data as produced by proc_L1.

delete

character vector, specify pairs of dates between which all dendrometer data will be deleted (i.e. 4 dates will result in two periods: 1-2 and 3-4 in which data is deleted). Dates need to be in the same standard date or datetime format (e.g. %Y-%m-%d %H:%M:%S).

series

character, specify the name of a single dendrometer series for which changes should be made. Data of other series is left unchanged. Not needed if only a single series is provided.

plot

logical, plots the corrected dataset with the original data in the background in grey.

plot_export

logical, specifies whether the plots are exported as a PDF file to the working directory or are plotted in the console.

tz

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

Value

The function returns a data.frame with corrected L1 dendrometer data.

See Also

corr_dendro_L2 to correct L2 data.

Examples

1
2
3
corr_dendro_L1(dendro_L1 = dendro_data_L1,
               delete = c("2013-08-01", "2013-08-05"),
               series = "site-1_dendro-3", plot_export = FALSE)

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