extract.seq: Extract a regular sequence from unique values in a vector

extract.seqR Documentation

Extract a regular sequence from unique values in a vector

Description

Returns, if possible, an regular spaced sorted vector vector. If more than half of the unique values have unequal distances, the sorted values are returned.

Usage

extract.seq(x, force.regular = FALSE, descending = FALSE)

Arguments

x

vetor of values (e.g. longitudes or latitudes)

force.regular

force a regular spaced vector with the smallest distance.

descending

sort in descending order if TRUE (default: ascendind)

Value

data.frame of gridcells with columns c("Lon", "Lat", "area")

Author(s)

Joerg Steinkamp joerg.steinkamp@senckenberg.de


MagicForrest/DGVMTools documentation built on Aug. 23, 2024, 8:05 a.m.