Skip to contents

Retrieves information for a single Special Protection Area (SPA) from the example spalist dataset included with the package.

Usage

get_example_spadat2(type = NULL)

Arguments

site_code

Character string giving the site code to extract. Defaults to "UK9004171".

Value

A tibble containing the matching row(s) from spalist. If the supplied site_code is not found, an empty tibble is returned.

Details

This function provides convenient access to an example SPA record from the package dataset and is intended for demonstrations, tutorials, and testing workflows.

See also

get_example_spadat1() for retrieving site coordinate information.

Examples

# Load the default example SPA
spa <- get_example_spadat2()

# Load a specific SPA by site code
spa <- 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