Skip to contents

Utility

Cleaning and adjusting data structure for succinct pipeline

attach_xy()
Attach XY coordinates to a data frame
df_params()
Get data.frame of function parameters
feature_raw_download()
Check file status and download if necessary
load_modis_files()
Load MODIS files from a specified path.
loadargs()
Load arguments from the formatted argument list file
read_locs()
Read AQS data
read_paths()
Read paths from a directory with a specific file extension
search_function()
Search package functions
set_args_calc()
Set arguments for the calculation process
set_slurm_resource()
Set resource management for SLURM

Calculation

Main calculation functions for branching, parallel processing, and parameter injection

calc_geos_strict()
Process atmospheric composition data by chunks (v3)
calc_gmted_direct()
Reflown gmted processing
calc_narr2()
Calculate aggregated values for specified locations
calculate()
Spatiotemporal covariate calculation
inject_calculate()
Injects the calculate function with specified arguments.
inject_geos()
Injects geographic information into a data frame
inject_gmted()
Injects GMTED data into specified locations
inject_modis_par()
Injects arguments to parallelize MODIS/VIIRS data processing
par_narr()
Parallelize NARR feature calculation
process_counties()
Load county sf object
process_geos_bulk()
Process atmospheric composition data by chunks (v2)
process_narr2()
Process NARR2 Data

Post-calculation

Merging calculation results

add_time_col()
Add Time Column
append_predecessors()
Append Predecessors
impute_all()
Impute missing values and attach lagged features
post_calc_autojoin()
Automatic joining by the time and spatial identifiers
post_calc_convert_time()
Convert time column to character
post_calc_df_year_expand()
Expand a data frame by year
post_calc_drop_cols()
Remove columns from a data frame based on regular expression patterns.
post_calc_join_yeardate()
Join a data.frame with a year-only date column to that with a full date column
post_calc_merge_all()
Merge spatial and spatiotemporal covariate data
post_calc_merge_features()
Merge input data.frame objects
post_calc_unify_timecols()
Change time column name
post_calc_year_expand()
Map the available raw data years over the given period
reduce_merge()
Reduce and merge a list of data tables

Base learner

Fitting base learner and helper functions

convert_cv_index_rset()
Generate manual rset object from spatiotemporal cross-validation indices
fit_base_brulee()
Base learner: Multilayer perceptron with brulee
fit_base_elnet()
Base learner: Elastic net
fit_base_xgb()
Base learner: Extreme gradient boosting (XGBoost)
generate_cv_index()
Generate spatio-temporal cross-validation index with anticlust
vis_rset()
Visualize the spatio-temporal cross-validation index

Meta learner

Fitting meta learner

meta_learner_fit()
Fit a BART (Bayesian Additive Regression Tree) meta learner. It takes predictions of other models such as kriging, GLM, machine learning models as input and fits a BART Model
meta_learner_predict()
Create meta_learner predictions from the list of BART fit objects and predictions of base learners

Miscellaneous

Miscellaneous functions for general use

divisor()
Get Divisors
`%tin%`
Check if a query date falls within a time interval