Description Usage Arguments Examples
combine target and predictor data with rescaling
1 2 |
date_col |
a two character element vector c("Date", "Date"), where the frist element is the date column from target. The second element is the date column from predictor, The string elements have to be any of names of lubridate accessor function with capitalizing the first letter, such as "Date", "Year", "Month", "Day", "Hour", "Minute", "Second", "Week", "Quarter", "Semester", "Am", "Pm", etc. |
scaling |
a two character element vector c("Date", "Date"), where the frist element is the destinate temporal scale for target, the second element is the destinate temporal scale for predictor The string elements have to be any of names of lubridate accessor function with capitalizing the first letter, such as "Date", "Year", "Month", "Day", "Hour", "Minute", "Second", "Week", "Quarter", "Semester", "Am", "Pm", etc |
aggMethod |
a two character element vector c("Date", "Date"), where the frist element is the aggregation method for target, the second element is the aggregation method for predictor. The string elements have to be those destinaGroup generic methods such as min, max, mean, etc.(see: ??dplyr::summarise) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | data(weather_tmin_sf)
data(corn_yield_sf)
corn_yield_st <- corn_yield_sf
weather_tmin_st <- weather_tmin_sf
target_data_t <- spatio_fuse(target_stN = corn_yield_st,
data_stN = weather_tmin_st,
parm_nm = "tmax",
crs = 2163); target_data_t
target_data <- target_data_t %>%
nest(data = c(target, predictor)); target_data
data <- target_data[which(target_data$county == "boone"), ]$data[[1]]; data
# humboldt for none; allamakee for one; boone for two
rescale_bind(data,
date_col = c("Year", "Date"),
scaling = c("Year","Day"),
aggMethod = c("mean","max"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.