Learn R Programming

myClim (version 1.4.0)

mc_info_states: 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)

Value

data.frame with columns:

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

  • logger_name - name of logger in myClim object at the locality (e.g., "Thermo_1", "TMS_2")

  • 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")

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.

Examples

Run this code
mc_info_states(mc_data_example_raw)

Run the code above in your browser using DataLab