tempo_fuse: combine target data and site within polygon

Description Usage Examples

View source: R/tempo_fuse.R

Description

combine target data and site within polygon

Usage

1
2
tempo_fuse(target_data = NULL, date_col = c("Year", "Date"),
  scaling = c("Year", "Day"), aggMethod = c("mean", "max"))

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
data(weather_tmin_sf)
data(corn_yield_sf)
corn_yield_st <- corn_yield_sf
weather_tmin_st <- weather_tmin_sf
tictoc::tic()
target_data_t <- spatio_fuse(target_stN = corn_yield_st,
                               data_stN = weather_tmin_st,
                               parm_nm = "tmin",
                               crs = 2163); target_data_t
tictoc::toc()
target_data <- tempo_fuse(target_data = target_data_t,
                          date_col = c("Year", "Date"),
                          scaling = c("Year","Month"),
                          aggMethod = c("mean","min")); target_data

WeiquanLuo/stNet documentation built on Nov. 24, 2019, 5:11 p.m.