check_losses: Count missing values and missing PA

View source: R/tools.R

check_lossesR Documentation

Count missing values and missing PA

Description

Count missing values and missing PA

Usage

check_losses(
  vars,
  data,
  resp_var = "staff_rangers_log",
  PA_var = "PA_area_log",
  PA_invlink = exp
)

Arguments

vars

a vector of quoted variable names

data

a data.frame or tibble

resp_var

the name of the response variable (to exclude it from computation)

PA_var

the name of the variable storing the PA area information

PA_invlink

the function to turn PA_var into km2 (default = exp)

Value

a tibble


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