bird_wide.focal: Creates a subsetted wide data frame for Point Count data

Description Usage Arguments Value Examples

View source: R/bird_wide.focal.r

Description

For the output of bird_wide.data(). This function subsets the wide dataframe by ranch, year and focal species.

Usage

1
2
3
bird_wide.focal(df, transect = c(levels(as.factor(df$Transect))),
  surveyyear = c(levels(as.factor(df$YEAR))),
  choose_focal_group = c("Grassland", "Oak Woodland", "Riparian"))

Arguments

df

is a dataframe. Only works with newpc2 created by add.zeros() and it's previous steps.

transect

A ranch code or a list of ranch codes ie."TOKA".

surveyyear

A year or multiple years. ie. c(2016,2018)

choose_focal_group

Three bird focal groups: Grassland, Oak Woodland, and Riparian. Each contain Spp codes that we consider focal species for that habitat type.

Value

A subsetted wide data frame by focal group

Examples

1
bird_wide.focal(newpc2, "TOKA", surveyyear= 2018, choose_focal_group="Grassland")

weverkaj/RMN documentation built on July 26, 2019, 10:34 p.m.