These functions provide access to the metadata associated with SAFE datasets. The functions provide three levels of information:
displays the record versions grouped under dataset concepts,
displays summary information about a specific record, and
displays metadata about data worksheet fields within a record.
All three functions accept a first argument
obj, which can be one
of three things:
A character or numeric vector of SAFE dataset records or
concepts, which will be validated using
An already validated
safe_record_set object, or
safedata data frame loaded using
show_concepts is passed a record id, then the function looks
up the relevant concept. The version table indicates which versions
are available ("*" for the most recent available version and "o"
for older available versions), and which are unavailable due to
embargo or retriction ("x"). A "!" is used to show that a private
local copy of an embargoed or restricted dataset has been inserted
show_concepts(obj) show_record(obj) show_worksheet(obj, worksheet = NULL, extended_fields = FALSE)
A reference to SAFE records or a loaded worksheet (see above)
The name of a worksheet to show. Obviously, if
Logical - show a compact description of worksheet fields or a longer output including full metadata descriptors.
Invisibly, a SAFE metadata object or a list of such objects. These are not really intended for end user consumption.
show_concepts: Show the records associated with a
show_record: Show details of a specific dataset
show_worksheet: Show details of a data worksheet
set_example_safe_dir() recs <- validate_record_ids(c(1400562, 3266827, 3266821)) show_concepts(recs) show_record(recs[1,]) # Show worksheet metadata from a record or from a loaded worksheet show_worksheet(1400562, "EnvironVariables") beetle_abund <- load_safe_data(1400562, "Ant-Psel") show_worksheet(beetle_abund, extended_fields = TRUE) unset_example_safe_dir()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.