item_get_fields | R Documentation |
Retrieve specific fields from an SB item
item_get_fields(sb_id, fields, ..., drop = TRUE)
sb_id |
An |
fields |
a vector of fields |
... |
Additional parameters are passed on to |
drop |
logical. If only one field is selected, should the list format be dropped? |
List serialization of chosen metadata for an SB item
# Get certain fields from an item
item_get_fields("63cb38b2d34e06fef14f40ad", c('title', 'citation', 'contacts'))
#' # If only 1 field selection, do or don't drop list format
item_get_fields("63cb38b2d34e06fef14f40ad", 'title')
item_get_fields("63cb38b2d34e06fef14f40ad", 'title', drop = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.