trim_vector_data: Trim VOCC output to only include vectors for cells with...

Description Usage Arguments

View source: R/make-vector-data.R

Description

Trim VOCC output to only include vectors for cells with specific end conditions

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
trim_vector_data(
  data,
  variable_names,
  lower_change,
  upper_change,
  lower_thresholds = NULL,
  upper_thresholds = NULL,
  cell_size = 2,
  dist_intercept = cell_size,
  max_dist = max(data$distance, na.rm = TRUE),
  min_dist = cell_size/2
)

Arguments

data

Dataframe created by make-vector-data function

variable_names

Names of climate variable(s) used in make-vector-data function

lower_change

When not c(Inf), cells will be trimmed based on lower_thresholds

upper_change

When not c(Inf), cells will be trimmed based on upper_thresholds

lower_thresholds

Default of NULL only allowed when change is Inf

upper_thresholds

Default of NULL only allowed when change is Inf

cell_size

Cell size used in make-vector-data function

dist_intercept

Distance at which model estimates will be calculated. Defaults to nearest neighbouring cells

max_dist

Value at which to truncate distances (defaults to no truncation)

min_dist

Defaults to half cell size.


pbs-assess/gfranges documentation built on Dec. 13, 2021, 4:50 p.m.