View source: R/glfishr_utils.R
pluck_dataframe | R Documentation |
This is a helper function that is used to extract or pluck a
data-frame from a named list of key-values pairs. Api endpoints
for lookup-values are often in the form of key-value pairs. This
function selects the named element from list and returns it as a
data-frame with the columns 'value' and 'label'. This function is
not expected to be called directly, but is used by other
convenience functions (get_tag_colours()
,
get_tag_types()
).
pluck_dataframe(payload, what = "tag_type")
payload |
list |
what |
string |
dataframe
Adam Cottrill adam.cottrill@ontario.ca
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.