birdRichness | R Documentation |
Returns the number of bird species found in a park, at a point or a collection of points.
birdRichness(
object,
points = NA,
AOU = NA,
years = NA,
visits = NA,
byPark = FALSE,
byYear = FALSE,
byPoint = FALSE,
byGuild = FALSE,
guildType = NA,
guildCategory = NA,
wide = FALSE,
name.class = "short",
output = "total",
...
)
object |
An NCRNbirds object or a list of such objects or a |
points |
A character vector passed to |
AOU |
A character vector passed to |
years |
A vector of numbers passed to |
visits |
A length 1 numeric vector, defaults to |
byPark |
Logical. If |
byYear |
Logical. If |
byPoint |
Logical ,if |
byGuild |
Logical,if |
guildType |
The type of guild as determined by the BCI. Passed on to the |
guildCategory |
The guild category as determined by the BCI. Passed on to the |
wide |
Defaults to |
name.class |
Indicates if park names should appear as "code" the defaults or as "short" or "long" names from |
output |
Either "total" (the default) or "list". Note that this must be in quotes. Determines the type of output from the function,
when |
... |
additional arguments passed to |
This function calculates the species richness for a park, group of parks, group of monitoring points etc.
Species richness is the number of different species found, regardless of their abundance. The function works by first getting the monitoring data by
using the getBirds
function and then counting the number of unique birds found. All of the options for combining or subsetting
data in getBirds
will work for birdRichness
including subsetting by year and monitoring point. If there is no data, due to
no sampling occuring at hte specified time and place, NA
will be returned.
How years with no visits are handled depends on wth is supplied in object
. If the object
is a data.frame
and
years
are specified, it is assumed that result is wanted for all of those years. Therefore if some years are not present in the data,
they will be assigned a richness of zero. If the object
is a NCRNbirds
object or a list of such objects, then
getVisits
will be called to determine which years samplign took place in. Only years with vistis will be returned, and
years where no birds were observed will be given a richenss of zero.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.