View source: R/table_removeRecord.R
table_removeRecord | R Documentation |
Incoming locationID
values are compared
against the incoming locationTbl
and any matches are removed.
table_removeRecord(locationTbl = NULL, locationID = NULL, verbose = TRUE)
locationTbl |
Tibble of known locations. |
locationID |
Vector of |
verbose |
Logical controlling the generation of progress messages. |
Updated tibble of known locations.
table_addLocation
table_addSingleLocation
table_updateSingleRecord
library(MazamaLocationUtils)
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, distanceThreshold = 500)
# Remove it
locationTbl <- table_removeRecord(locationTbl, locationID)
dim(locationTbl)
# Test
table_getLocationID(locationTbl, lon, lat, distanceThreshold = 500)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.