MazamaLocationUtils (version 0.1.6)

table_removeRecord: Remove location records from a table

Description

Incoming locationID values are compared against the incoming locationTbl and any matches are removed.

Usage

table_removeRecord(locationTbl = NULL, locationID = NULL,
  verbose = TRUE)

Arguments

locationTbl

Tibble of known locations, Default: NULL

locationID

Vector of locationID strings, Default: NULL

verbose

Logical controlling the generation of progress messages.

Value

Updated tibble of known locations.

See Also

table_addLocation

table_addSingleLocation

table_updateSingleRecord

Examples

Run this code
# NOT RUN {
locationTbl <- get(data("wa_monitors_500"))
dim(locationTbl)

# Wenatchee
lon <- -120.325278
lat <- 47.423333

# Get the locationID first
locationID <- table_getLocationID(locationTbl, lon, lat, radius = 500)

# Remove it
locationTbl <- table_removeRecord(locationTbl, locationID)
dim(locationTbl)

# Test
table_getLocationID(locationTbl, lon, lat, radius = 500)
# }

Run the code above in your browser using DataLab