remove.station.metadata {FlowScreen} | R Documentation |
Remove MetaData for one station from database
Description
Removes a station's metadata from the package database based on the Agency and StationID. If the agency is "USGS" and the station is not found, it will also check by adding a "0" to the beginning of the StationID. Used to remove a case added in error.
Usage
remove.station.metadata(Agency, StationID)
Arguments
Agency |
string indicating the source of the streamflow data, e.g. USGS, WSC, etc. Cannot be NA. |
StationID |
string, cannot be NA. |
Value
The metadata of the removed station if found and removed, or NULL if not found.
Examples
## Not run:
# Add station metadata
met_added <- add.station.metadata(
Agency = "Foo Bar",
StationID = "01234",
StnName = "Example Station",
StateProv = "Example State",
Country = "Example Country",
Lat = 40.0,
Lon = -89.0,
CatchmentArea_km2 = 500,
RHN = TRUE,
StationID_Alternate = "01234A",
Overwrite = FALSE
)
# Remove the added station metadata
met_removed <- remove.station.metadata(
Agency = "Foo Bar",
StationID = "01234"
)
## End(Not run)
[Package FlowScreen version 2.1 Index]