pr_fm_npn: Formatting USA-NPN data

View source: R/pr_fm_npn.R

pr_fm_npnR Documentation

Formatting USA-NPN data

Description

Combines data into a format which can be ingested by the optimization routines. Data is aggregated on an individual_id basis, rather than on the user defined site_id.

Usage

pr_fm_npn(
  data,
  phenophase = 371,
  offset = 264,
  path = tempdir(),
  internal = TRUE
)

Arguments

data

an USA-NPN data frame as returned by download_npn()

phenophase

a phenophase to include as validation statistic

offset

offset of the time series in DOY (default = 264, sept 21)

path

path where to save the generated data file

internal

return data as structured list to R workspace or write to RDS file (default = TRUE)

Examples


## Not run: 
npn_data <- pr_fm_npn()

## End(Not run)

khufkens/phenor documentation built on Aug. 31, 2023, 1:24 a.m.