getPoints: getPoints

getPointsR Documentation

getPoints

Description

Returns the contents of the Points slot of an NCRNbirds object. The returned data can be filtered to meet various criteria.

Usage

getPoints(object, times = NA, years = NA, points = NA, output = "dataframe")

Arguments

object

An NCRNbirds object or a list of such objects.

times

A numeric vector of length 1. Returns only data from points where the number of years that a point has been visited is greater or equal to the value of times. This is determined based on the data found in the Visits slot.

years

A numeric vector. Returns data only from points where the years the point was visited matches one of the values in years. The year a visit takes place is determined by the Year column in the visits slot which is dervied from the imformation in the EventDate column.

output

Either "dataframe" (the default) or "list". Note that this must be in quotes. Determines the type of output from the function.

Details

This function returns point data either from a single NCRNbirds object or a list of such objects. The default output is adata.frame. However, if object is a list and output is "list" then a list of data.frames will be returned. The name of each element in this list will correspond to the ParkCode in each NCRNbirds object.


NCRN/NCRNbirds documentation built on Feb. 28, 2025, 10:18 p.m.