View source: R/SOptim_SimulateTestData-v1.R
simRasterTrain | R Documentation |
Uses random data to create a simulated SpatRaster
useful
for testing and debugging code.
simRasterTrain(
nr = 100,
nc = 100,
classes = c(0, 1, NA),
probs = c(0.1, 0.2, 0.7)
)
nr |
Number of rows for the simulated |
nc |
Number of columns for the simulated |
classes |
A vector defining integer train classes (default for
single-class: |
probs |
A vector defining sampling probabilities for each class to use in
[base::sample()] (default: |
A SpatRaster
object with random train data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.