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').
1 2 3 4 5
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 dataset concept.
show_record: Show details of a specific dataset
show_worksheet: Show details of a data worksheet
1 2 3 4 5 6 7 8 9
safedir <- system.file('example_data_dir', package='safedata') set_safe_dir(safedir, update=FALSE, validate=FALSE) 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.