predictors and get_predictor_names return a character vector with
predictors names.
test_variables_names returns a logical informing if all variables are equal in both
objects (TRUE) or not (FALSE).
set_variables_names returns the s1 object with new names provided by s2 or
new_names.
Arguments
x
A sdm_area or input_sdm object to get/set predictors names.
new_names
A character vector from size length(get_predictor_names(x))
sa
A sdm_area object.
scen
A stars object with scenarios.
s1
A stars object with scenarios.
s2
A stars object with scenarios or a sdm_area object.
Author
Luíz Fernando Esser (luizesser@gmail.com)
https://luizfesser.wordpress.com
Details
This functions is available so users can modify predictors names to better represent them. Use
carefully to avoid giving wrong names to the predictors. Useful to make sure the predictors names
are equal the names in scenarios.
test_variables_names Tests if variables in a stars object (scen argument)
matches the given sdm_area object (sa argument).
set_variables_names will set s1 object variables names as the s2 object
variables names OR assign new names to it.