powered by
Convert a Neotoma2 sites object into a standardized JSON file for API management.
sites
# S4 method for sites toJSON(x = NA)
The function returns a character string in JSON format
sites R object to be converted
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) }
Run the code above in your browser using DataLab