View source: R/populate_template.R
prepare_payload | R Documentation |
This function takes the data-frame returned from the api call and preforms any required transformations before returning it. Currently the function optionally removes is and slug from the data frame (if they exist), and transforms all of the field names to uppercase so that they match names that have been traditionally used in FISHNET-2. Other transformations or modifications could be added in the future.
prepare_payload(payload, show_id = FALSE, to_upper = TRUE)
payload |
dataframe |
show_id |
When 'FALSE', the default, the 'id' and 'slug' fields are hidden from the data frame. To return these columns as part of the data frame, use 'show_id = TRUE'. |
to_upper |
|
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.