checklists_to_csv: Output *.csv file of the species checklist

Description Usage Arguments Value Examples

Description

This function generates, for each queried polygon, a *.csv file of the final species checklist and abundance classification created by make_checklists. It requires that the output of make_checklists be output to an R object and the argument xls = FALSE; see example. This produces a clean file for easy import into, e.g., an external database.

Usage

1
checklists_to_csv(checklist, out_dir = "../Output/")

Arguments

checklist

a list created by make_checklists with argument xls = FALSE

out_dir

character string of the file path to the directory in which to save output comma-separated file(s)

Value

a comma-separated file for each distinct polygon (i.e., each name in the geo_ebird_df passed to make_checklists)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
# Get shapefile
SErefuges <- rgdal::readOGR("../GIS", "refuges", verbose = FALSE, stringsAsFactors = FALSE)

# Query eBird records within Piedmont NWR and 10 km buffer
piedmont <- geo_ebird(SErefuges, which_polys = "Piedmont", buffers = c(0, 10))

# Generate R object containing abundance, occurrence, final checklist, and effort information
# Note to store the output in an R object and specify xls = FALSE
piedmont_cl <- make_checklists(piedmont, xls = FALSE)
checklists_to_csv(piedmont_cl)

## End(Not run)

adamdsmith/geobird documentation built on May 10, 2019, 5:13 a.m.