library(nabatr) # Enter your NABat username here username = 'nabat_username' token = get_nabat_gql_token(username = username) token # Note: if you leave run token = get_nabat_gql_token(), # it will prompt you for a username and then a password
# Refresh login token token = get_refresh_token(token) # Use get_nightly_data with minimum parameters # survey_type options = 'bulk_sae' | 'bulk_mae' | 'bulk_hib' | 'bulk_mat' sae_nightly_data = get_nightly_data(token, sp_code = 'MYLU', survey_type = 'bulk_sae') # Display data sae_nightly_data
# Refresh login token token = get_refresh_token(token) # Use get_nightly_data with all parameters sae_nightly_data = get_nightly_data(token, sp_code = c('MYLU', 'ANPA'), sample_frame = c('CONUS','Alaska'), project_id = c(33,284), years = c(2015,2016,2017), survey_type = 'bulk_sae') # Display data sae_nightly_data
# Get your species lookup table species_df = get_species(token = token) # Display your species lookup table species_df$species_code
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.