expand_column | R Documentation |
Expand all information contained in a JSON formatted column in a query object. Information is presented as nested data frames if needed.
expand_column(query, column_name)
query |
The query object with a JSON formatted column to be expanded. |
column_name |
(character) The name of the column to be expanded. |
Nothing.
library(ArctosR)
if (interactive()) {
# Request to download all available data
query <- get_records(
scientific_name = "Canis lupus", guid_prefix = "MSB:Mamm",
columns = list("guid", "parts", "partdetail")
)
# The partdetail column is a JSON list of parts and their attributes
# This will convert the column to dataframes:
expand_column(query, "partdetail")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.