Feature names
Extract the names of the features in an object.
feature_names(x) ## S4 method for signature 'ConservationProblem' feature_names(x) ## S4 method for signature 'ZonesRaster' feature_names(x) ## S4 method for signature 'ZonesCharacter' feature_names(x)
x |
|
character
feature names.
# load data data(sim_pu_raster, 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))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.