R/rbms_index_modelling.r
check_pheno.Rd
check_pheno Check for the flight curve of a specific year. If the specific year is missing, use the nearest year available within a 5-year period to impute missing count. Function used in impute_count.
check_pheno(
sp_count_flight,
ts_flight_curve,
YearCheck,
YearLimit,
TimeUnit,
verbose = TRUE
)
data.table Object with the flight curve, relative abundance (NM), for a specific year.
data.table Object with the all flight curves and relative abundance (NM) for the years available for the search as returned by flight_curve.
integer or vector Year to check for nearest flight curve, set internally in impute_count.
integer Define the span of years (+/- number of year) to look for a flight curve, if NULL no restriction is set.
character The time-step for which the spline should be computed, 'd' day or 'w' week.
a logical indicating if some “progress report” should be given.
A data.table with time-series of the expected relative abundance of butterfly count per day (NM) for the year or the nearest year where phenology is available.