mc_prep_delete: Delete values by index

View source: R/prep.R

mc_prep_deleteR Documentation

Delete values by index

Description

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

Usage

mc_prep_delete(data, index_table)

Arguments

data

myClim object in Raw-format. see myClim-package

index_table

data.frame (table); see details

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.

Value

raw myClim data with deleted values.

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)

myClim documentation built on Nov. 5, 2025, 7:35 p.m.