
Load an example SPA site record
get_example_spadat1.RdRetrieves the coordinates and associated information for a single site
from the example spacoordinates dataset included with the package.
Value
A tibble containing the matching row(s) from
spacoordinates. If the supplied site_code is not found, an empty
tibble is returned.
Details
This function provides convenient access to a single example site from
the package dataset. It is primarily intended for demonstrations,
tutorials, and testing workflows. Site designation information for the
same SPA can be obtained with get_example_spadat2().
See also
get_example_spadat2() for retrieving SPA designation information for
the same site.
Examples
# Load the default example site
spa_site <- get_example_spadat1()
# Load a specific site
spa_site <- get_example_spadat1("UK9004171")
#> Error in dplyr::filter(seabORD::spacoordinates, SITECODE == site_code): ℹ In argument: `SITECODE == site_code`.
#> Caused by error:
#> ! object 'site_code' not found
# Retrieve the corresponding SPA information
spa_info <- get_example_spadat2("UK9004171")
#> Error in dplyr::filter(seabORD::spalist, SITE_CODE == site_code): ℹ In argument: `SITE_CODE == site_code`.
#> Caused by error:
#> ! object 'site_code' not found