View source: R/short_helpers.R
occ_randsplit | R Documentation |
occ_randsplit splits a set of occurrences to obtain training and testing data randomly.
occ_randsplit(data, train_proportion = 0.5)
data |
matrix or data.frame with the occurrences to be split. Columns may vary but species, longitude, and latitue are recommended. |
train_proportion |
(numeric) proportion (from 0 to 1) of data to be used as training occurrences. The remaining data will be used for testing. Default = 0.5. |
List with all occurrences (all), training occurrences (train), and testing (test) occurrences.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.