dbW_delete_duplicated_weatherData: Remove duplicated weather data records

View source: R/sw_dbW_WeatherDatabase.R

dbW_delete_duplicated_weatherDataR Documentation

Remove duplicated weather data records

Description

Remove duplicated weather data records

Usage

dbW_delete_duplicated_weatherData(
  site_id = NULL,
  check_values = TRUE,
  carefully = FALSE,
  verbose = FALSE
)

Arguments

site_id

A numeric value. If NULL, then duplicates of any sites are deleted. Otherwise, duplicates for the requested site only are deleted.

check_values

A logical value. See details.

carefully

A logical value. If TRUE and site_id is specified, then first count all and unique weather data records to determine if there could be duplicate records before attempting to delete them. Counting instead of identifying duplicates can be faster in certain situations.

verbose

A logical value.

Value

The number of deleted records

Details

A weather data record is considered a duplicate if site_id, scenario_id, start_year, and end_year agree; if check_values is TRUE, then the daily weather values must also exactly agree (checked as blobs) to be considered a duplicate entry.


Burke-Lauenroth-Lab/Rsoilwat documentation built on Dec. 9, 2023, 12:41 a.m.