This function creates a state (tag) when joining multiple overlapping time-series with different microclimate values. State is created for all values that are in conflict in joining process.

mc_states_join(
  data,
  tag = "join_conflict",
  by_type = TRUE,
  tolerance = NULL,
  older_newer_suffix = FALSE
)

Arguments

data

myClim object in Raw-format. see myClim-package

tag

The tag name (default "join_conflict").

by_type

for mc_join function (default TRUE)

tolerance

for mc_join function (default NULL)

older_newer_suffix

if true, the suffix _older/_newer is added to the tag name (default FALSE)

Value

Returns a myClim object with added states.

Details

For more info see details of mc_join function. Parameter older_newer_suffix can be used for easier filtering of tags, to distinguish whether certain state on overlapping time series is connected to older or newer record. It can help to decide which value keep and which remove. The loggers with same start and end datetimes cannot be marked as older/newer. Tag is without suffix in this case.