ebirdclean: Clean data frame provided by eBird

Description Usage Arguments Details Value Author(s) Examples

View source: R/ebirdclean.R

Description

Clean data frame provided by eBird

Usage

1
ebirdclean(x = "MyEBirdData.csv")

Arguments

x

CSV file provided by eBird. Defaults to the name provided by eBird: "MyEBirdData.csv".

Details

Uses read.csv to read the .csv file, with its only argument being stringsAsFactors = FALSE.

Value

An updated data frame, with the following changes: - Separates the Date column into two new columns, Year and Month. - Extracts country information from State.Province and converts into full name (using the countrycode package) - Removes text in parentheses in Common.name, which is used to denote subspecies or groups. - Removes all rows of species labelled as hybrids, domestic types, slashes (uncertain records between two species), or spuhs (Genus sp.).

Author(s)

Sebastian Pardo sebpardo@gmail.com

Examples

1
2
3
4
## Not run: 
mylist <- ebirdclean("MyEBirdData.csv")
mylist <- ebirdclean()
## End(Not run)

sebpardo/myebird documentation built on Aug. 9, 2021, 3:58 a.m.