terra::spatSample
How terra runs Random Points in Polygons: terra::spatSample.
| Engine | terra |
|---|---|
| Tool name | terra::spatSample |
| Interface | r |
| Implements | Random Points in Polygons |
| Documentation | Not stated |
| Effects | modifies input: no, network: no |
| Notes | S4 generic: parameters gathered from all its methods; each method takes a subset. |
| Status | active |
Parameters
| Name | Type | Required | Default | Choices | Note |
|---|---|---|---|---|---|
x | any | yes | Not stated | Not stated | Not stated |
... | dots | no | Not stated | Not stated | further arguments passed on |
size | any | yes | Not stated | Not stated | Not stated |
method | any | no | "random" | Not stated | Not stated |
lonlat | any | yes | Not stated | Not stated | Not stated |
as.points | any | no | FALSE | Not stated | Not stated |
exact | any | no | FALSE | Not stated | Not stated |
replace | any | no | FALSE | Not stated | Not stated |
na.rm | any | no | FALSE | Not stated | Not stated |
as.raster | any | no | FALSE | Not stated | Not stated |
as.df | any | no | TRUE | Not stated | Not stated |
as.mask | any | no | FALSE | Not stated | Not stated |
values | any | no | hasValues(x) | Not stated | Not stated |
cells | any | no | FALSE | Not stated | Not stated |
xy | any | no | FALSE | Not stated | Not stated |
ext | any | no | NULL | Not stated | Not stated |
warn | any | no | TRUE | Not stated | Not stated |
weights | any | no | NULL | Not stated | Not stated |
exp | any | no | 5 | Not stated | Not stated |
exhaustive | any | no | FALSE | Not stated | Not stated |
each | any | no | TRUE | Not stated | Not stated |
strata | any | no | NULL | Not stated | Not stated |
chess | any | no | "" | Not stated | Not stated |
How it maps to the operation
| Operation parameter | Parameter here | Note |
|---|---|---|
layer | x | Not stated |
count | size | Not stated |
seed | Not stated | Call set.seed() first; there is no seed argument. |
Differences from the operation
- For polygons, size is the total over the layer; strata can spread it by polygon.
Harvested by the r-packages harvester from engine version
1.9.50. Names can change when an engine is harvested again.