extract_PA_areas: Internal function used to extract PA_areas at the level of...

View source: R/tools.R

extract_PA_areasR Documentation

Internal function used to extract PA_areas at the level of countries/territories

Description

This function is called by run_LMM_workflow() or run_RF_workflow().

Usage

extract_PA_areas(data_final_pred, resp, data)

Arguments

data_final_pred

A final prediction dataset

resp

The quoted name of the response variable

data

the full dataset

Examples

dat <- fill_PA_area(data_rangers, coef = 0.5)
d <- build_final_pred_data(data = dat,
                           formula = staff_rangers_log ~ GDP_2019,
                           survey = "complete_known",
                           spatial = TRUE,
                           outliers = "ATA")
d$data_predictable$staff_rangers_log_predicted <- 0
extract_PA_areas(d, "staff_rangers_log", dat)


courtiol/rangeRinPA documentation built on Sept. 29, 2022, 9:54 a.m.