galah_apply_profile: Apply a data quality profile

View source: R/galah_apply_profile.R

galah_apply_profileR Documentation

Apply a data quality profile

Description

A 'profile' is a group of filters that are pre-applied by the ALA. Using a data profile allows a query to be filtered quickly to the most relevant or quality-assured data that is fit-for-purpose. For example, the "ALA" profile is designed to exclude lower quality records, whereas other profiles apply filters specific to species distribution modelling (e.g. CDSM).

Usage

galah_apply_profile(...)

apply_profile(.data, ...)

Arguments

...

a profile name. Should be a string - the name or abbreviation of a data quality profile to apply to the query. Valid values can be seen using show_all(profiles)

.data

An object of class data_request

Details

Note that only one profile can be loaded at a time; if multiple profiles are given, the first valid profile is used.

For more bespoke editing of filters within a profile, use galah_filter()

Value

A tibble containing a valid data profile value.

See Also

show_all() and search_all() to look up available data profiles. galah_filter() can be used for more bespoke editing of individual data profile filters.

Examples

## Not run: 
# Apply a data quality profile to a query
galah_call() |> 
  galah_identify("reptilia") |>
  galah_filter(year == 2021) |>
  galah_apply_profile(ALA) |>
  atlas_counts()

## End(Not run)

galah documentation built on Nov. 20, 2023, 9:07 a.m.