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.

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


if (FALSE) {
npn_data <- pr_fm_npn()
}