mc_states_replace: Replace values by states with tag

View source: R/states.R

mc_states_replaceR Documentation

Replace values by states with tag

Description

This function replace values of sensors by states with tag.

Usage

mc_states_replace(data, tags, replace_value = NA)

Arguments

data

myClim object see myClim-package

tags

specific tag to be replaced.

replace_value

(default NA).

Value

myClim object in the same format as input, with replaced values

Examples

states <- data.frame(locality_id="A1E05", logger_index=1, sensor_name="Thermo_T", tag="error",
                     start=lubridate::ymd_hm("2020-10-28 9:00"),
                     end=lubridate::ymd_hm("2020-10-28 9:30"))
data <- mc_states_insert(mc_data_example_clean, states)
data <- mc_states_replace(data, "error")

myClim documentation built on Oct. 21, 2024, 5:07 p.m.