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

mc_info_states(data)

Arguments

data

myClim object see myClim-package

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

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

mc_info_states(mc_data_example_raw)
#>    locality_id logger_index   logger_type sensor_name    tag
#> 1        A1E05            1        Thermo    Thermo_T source
#> 2        A1E05            2        Dendro    Dendro_T source
#> 3        A1E05            2        Dendro  Dendro_raw source
#> 4        A2E32            1           TMS      TMS_T1 source
#> 5        A2E32            1           TMS      TMS_T2 source
#> 6        A2E32            1           TMS      TMS_T3 source
#> 7        A2E32            1           TMS   TMS_moist source
#> 8        A2E32            2 HOBO_U23-001A      HOBO_T source
#> 9        A2E32            2 HOBO_U23-001A     HOBO_RH source
#> 10       A6W79            1           TMS      TMS_T1 source
#> 11       A6W79            1           TMS      TMS_T2 source
#> 12       A6W79            1           TMS      TMS_T3 source
#> 13       A6W79            1           TMS   TMS_moist source
#>                  start        end
#> 1  2020-10-28 08:45:00 2021-02-01
#> 2  2020-10-31 12:00:00 2021-02-01
#> 3  2020-10-31 12:00:00 2021-02-01
#> 4  2020-10-16 06:15:00 2021-02-01
#> 5  2020-10-16 06:15:00 2021-02-01
#> 6  2020-10-16 06:15:00 2021-02-01
#> 7  2020-10-16 06:15:00 2021-02-01
#> 8  2020-10-09 08:00:00 2021-02-01
#> 9  2020-10-09 08:00:00 2021-02-01
#> 10 2020-10-06 09:00:00 2021-02-01
#> 11 2020-10-06 09:00:00 2021-02-01
#> 12 2020-10-06 09:00:00 2021-02-01
#> 13 2020-10-06 09:00:00 2021-02-01
#>                                               value
#> 1  ./myClim/examples/data/TOMST/data_91184101_0.csv
#> 2  ./myClim/examples/data/TOMST/data_92201058_0.csv
#> 3  ./myClim/examples/data/TOMST/data_92201058_0.csv
#> 4  ./myClim/examples/data/TOMST/data_94184103_0.csv
#> 5  ./myClim/examples/data/TOMST/data_94184103_0.csv
#> 6  ./myClim/examples/data/TOMST/data_94184103_0.csv
#> 7  ./myClim/examples/data/TOMST/data_94184103_0.csv
#> 8          ./myClim/examples/data/HOBO/20024338.txt
#> 9          ./myClim/examples/data/HOBO/20024338.txt
#> 10 ./myClim/examples/data/TOMST/data_94184102_0.csv
#> 11 ./myClim/examples/data/TOMST/data_94184102_0.csv
#> 12 ./myClim/examples/data/TOMST/data_94184102_0.csv
#> 13 ./myClim/examples/data/TOMST/data_94184102_0.csv