This function is used internally in get_predictions
to ensure back-compatibility with former output of get_predictions
(i.e. for biomod2 version < 4.2-2). It transform a long data.frame
into a wide data.frame
with each column corresponding to a single model.
Note that the function is intended for internal use but have been made available for compatibility with ecospat
.transform_model.as.col(df)
a wide data.frame
a long data.frame
, generally a standard output of
get_predictions
Remi Patin