spThinBySubspecies: Thinning points by subspecies

View source: R/CalculateNicheSubspeciesDifferences.R

spThinBySubspeciesR Documentation

Thinning points by subspecies

Description

This function takes cleaned localities and applies a thinning algorithm so that points are no closer than the thin.par km. Does this per species, or whatever level of taxonomy is represented in the species column

Usage

spThinBySubspecies(
  loc_good_clean,
  thin.par = 10,
  reps = 1,
  lat.col = "latitude",
  long.col = "longitude",
  spec.col = "assigned",
  verbose = T,
  write.files = T
)

Arguments

loc_good_clean

Cleaned localities with associated Env data

thin.par

The amount of km points should not be closer than

reps

How many times to repeat the thinning

lat.col

the column name for latitude

long.col

The column name for longitude

spec.col

The column name for species

Examples


loc_good_clean = cleanByEnvironment(Env, loc)
locs_thinned = spThinBySubspecies(loc_good_clean,thin.par=10,reps=1,lat.col="latitude",long.col="longitude",spec.col="assigned")

kaiyaprovost/subsppLabelR documentation built on March 17, 2024, 5:09 p.m.