View source: R/feature_names.R
feature_names | R Documentation |
Extract the names of the features in an object.
feature_names(x, ...)
## S3 method for class 'ConservationProblem'
feature_names(x, ...)
## S3 method for class 'ZonesRaster'
feature_names(x, ...)
## S3 method for class 'ZonesSpatRaster'
feature_names(x, ...)
## S3 method for class 'ZonesCharacter'
feature_names(x, ...)
x |
|
... |
not used. |
A character
vector of feature names.
## Not run:
# load data
sim_pu_raster <- get_sim_pu_raster()
sim_features <- get_sim_features()
# create problem
p <-
problem(sim_pu_raster, sim_features) %>%
add_min_set_objective() %>%
add_relative_targets(0.2) %>%
add_binary_decisions()
# print feature names
print(feature_names(p))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.