This function is used to delete values in uncleaned raw myClim object by index.

mc_prep_delete(data, index_table)

Arguments

data

myClim object in Raw-format. see myClim-package

index_table

data.frame (table); see details

Value

raw myClim data with deleted values.

Details

Uncleaned logger contains raw indexes in metadata @raw_index. This function delete values by index_table parameter. This table (data.frame) contains 3 columns:

  • locality_id = id of locality

  • logger_name = name of logger

  • raw_index = index of the value to be deleted

This function is used for data checking and validating. Especially in cases when there are duplicated values for identical time step. This allows you to manually (visually) select values to be deleted and delete them by table.

Examples

index_table <- data.frame(locality_id = c("A1E05", "A1E05"),
                          logger_name = c("Thermo_1", "Thermo_1"),
                          raw_index = c(1, 2))
data <- mc_prep_delete(mc_data_example_raw, index_table)