toJSON,sites-method | R Documentation |
Convert a Neotoma2 sites
object into a standardized JSON file for API management.
## S4 method for signature 'sites'
toJSON(x = NA)
x |
sites R object to be converted |
The function returns a character string in JSON format
Socorro Dominguez s.dominguez@ht-data.com
{
# To find all sites that contain the string "Alexander%"
alex.sites <- get_sites(sitename="Alexander%")
# Convert the object to json
toJSON(alex.sites)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.