get_fg_phenophase: Get all plant phenophases for a functional group.

Description Usage Arguments Value Examples

View source: R/db_tables.R

Description

This retrieves all phenophase data for a specific functional group at all sites. This can be subset to specific years, or specific start and end dates.

Functional Groups are: 'PG' - perennial grass 'DS' - deciduous shrubs 'ES' - evergreen shrubs 'SU' - succulents

If shape = 'long' (the default) then columns will be: c('PLANT_ID','DATE','PHENOPHASE','STATUS','NOTE_FLAG','PHOTO_FLAG','SITE_CODE', 'SPP_CODE', 'FUNC_GRP_CODE')

If shape = 'wide' then all thephenophase codes will be columns.

Usage

1
2
3
4
5
6
7
get_fg_phenophase(
  functional_group,
  years = NULL,
  start_date = NULL,
  end_date = NULL,
  shape = "long"
)

Arguments

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.

shape

string. 'wide' or 'long' for a data.frame in the respective format. default 'long'

site_code

string 2 letter site code

Value

data.frame

Examples

1
get_fg_phenophase(site_code = 'NO')

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