mc_info_states: Get states (tags) info table

View source: R/info.R

mc_info_statesR Documentation

Get states (tags) info table

Description

This function return data.frame with information about sensor states (tags) see myClim-package

Usage

mc_info_states(data)

Arguments

data

myClim object see myClim-package

Details

This function is useful not only for inspecting actual states (tags) but also as a template for manually manipulating states (tags) in a table editor such as Excel. The output of mc_info_states() can be saved as a table, adjusted outside R (adding/removing/modifying rows), and then read back into R to be used as input for mc_states_insert or mc_states_update.

Value

data.frame with columns:

  • locality_id - when provided by user then locality ID, when not provided identical with serial number

  • logger_index - index of logger in myClim object at the locality

  • logger_type - type of logger

  • sensor_name - sensor name either original (e.g., TMS_T1, T_C), or calculated/renamed (e.g., "TMS_T1_max", "my_sensor01")

  • tag - category of state (e.g., "error", "source", "quality")

  • start - start datetime

  • end - end datetime

  • value - value of tag (e.g., "out of soil", "c:/users/John/tmsData/data_911235678.csv")

Examples

mc_info_states(mc_data_example_raw)

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