| show_values | R Documentation |
Users may wish to see the specific values within a chosen field, profile
or list to narrow queries or understand more about the information of
interest. show_values() provides users with these values. search_values()
allows users for search for specific values within a specified field.
show_values(df, all_fields = FALSE)
search_values(df, query)
Each Field contains categorical or numeric values. For example:
The field "year" contains values 2021, 2020, 2019, etc.
The field "stateProvince" contains values New South Wales, Victoria, Queensland, etc.
These are used to narrow queries with
filter().
Each Profile consists of many individual quality filters. For example, the "ALA" profile consists of values:
Exclude all records where spatial validity is FALSE
Exclude all records with a latitude value of zero
Exclude all records with a longitude value of zero
Each List contains a list of species, usually by taxonomic name. For example, the Endangered Plant species list contains values:
Acacia curranii (Curly-bark Wattle)
Brachyscome papillosa (Mossgiel Daisy)
Solanum karsense (Menindee Nightshade)
A tibble of values for a specified field, profile or list.
## Not run:
# Show values in field 'cl22'
search_fields("cl22") |>
show_values()
# This is synonymous with `request_metadata() |> unnest()`.
# For example, the previous example can be run using:
request_metadata() |>
filter(field == "cl22") |>
unnest() |>
collect()
# Search for any values in field 'cl22' that match 'tas'
search_fields("cl22") |>
search_values("tas")
# See items within species list "dr19257"
search_lists("dr19257") |>
show_values()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.