get_site_phenophase: Get all plant phenophases for a site.

Description Usage Arguments Value Examples

View source: R/db_tables.R

Description

Retrieve phenophase data for all plants at a specific site. Can be subset to specific years, or specific start and end dates. Since sites include multiple functional groups, this only returns in the long format with columns:

c('PLANT_ID','DATE','PHENOPHASE','STATUS','NOTE_FLAG','PHOTO_FLAG','SITE_CODE', 'SPP_CODE', 'FUNC_GRP_CODE')

Usage

1
2
3
4
5
6
get_site_phenophase(
  site_code,
  years = NULL,
  start_date = NULL,
  end_date = NULL
)

Arguments

site_code

string. 2 letter site code

years

Optional. integer or vector of integer for the years desired. years must be consecutive.

start_date

Optional. A string with format 'YYYY-MM-DD'. Get visit information from this date forward. Default is all prior dates.

end_date

Optional. A string with format 'YYYY-MM-DD'. Get visit information up to this date. Default is all dates up to todays date.

Value

data.frame

Examples

1
get_site_phenophase(site_code = 'NO')

sdtaylor/phenometR documentation built on Sept. 15, 2021, 6:35 a.m.