Description Usage Arguments Value Author(s) Examples
myebirds
calculates species totals based on data dumped by eBird
(Download page: http://ebird.org/ebird/downloadMyData) after it has been cleaned with ebirdclean
.
1 2 |
mydata |
Data frame provided by |
years |
Range of years to calculate across, default is between 1900 and current year. |
grouping |
Character vector specifying how the data should be grouped for counting.
Must be composed of "Year", "Country", and/or "Month". This vector is passed on directly to |
wide |
String specifying whether different values should be returned in wide format and how.
Must be one of the strings included in |
A data frame containing total counts divided into specified groups. If wide = FALSE
then it returns a combination of the following columns, depending on grouping specified:
"Year" Year
"Country" Country using two letter codes.
"Month" Month, using full month name (from month.name()).
"n" Total species count for the specified Year, Country, and Month.
If in wide format, then the first column(s) consist of the values in grouping that are not equal to wide, while the remaining columns are unique values of the argument specified in wide.
Sebastian Pardo sebpardo@gmail.com
1 2 3 4 5 6 7 8 9 | ## Not run:
mylist <- ebirdclean() # CSV must be in working directory
myebirds(mylist, grouping = c("Year"))
myebirds(mylist, grouping = c("Country", "Month"))
myebirds(mylist, grouping = c("Year", "Country", "Month"))
myebirds(mylist, grouping = c("Year", "Country", "Month"), wide = "Month")
myebirds(mylist, grouping = c("Year", "Country", "Month"), wide = "Country")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.