Description Usage Arguments Value
add_codes_for_field
adds a column containing the codes for a given
field to the dataframes contained in the given results. The codes are
derived from the uris: specifically they are the last item in uri string
delimited with a colon. Where fields contain items for totals their uris do
not contain a corresponding uri for the total. This function handles that
case by creating a dummy code for the total (called "Total").
1 | add_codes_for_field(results, field, colname)
|
results |
The results list. |
field |
The name of the field for which to extract codes. |
colname |
The name of the new column which will contain the codes. |
A copy of the results with a code column added to each dataframe.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.