View source: R/dsmartr_iterate.R
| get_classes | R Documentation |
Returns the set of unique soil classes that occur in an input soil map, and, optionally, a set of known points.
get_classes(soil_map = NULL, soil_points = NULL, col_stub = NULL)
col_stub |
String; stub of attribute column names holding soil class data |
soilmap |
Data Frame; Returned by |
soilpoints |
Data Frame; Returned by |
A factor holding the set of soil classes occurring in both datasets,
sorted alphabetically. Internal to iterate.
It is up to the user to make sure the classification schema in both datasets matches/is compatible.
## Not run:
# run prep_polygons() and prep_points() examples, then:
class_levels <- get_classes(soil_map = pr_ap, soil_points = pr_pts, col_stub
= 'CLASS')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.