Learn R Programming

myClim (version 1.5.0)

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

Value

raw myClim data with deleted values.

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.

Examples

Run this code
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)

Run the code above in your browser using DataLab