Learn R Programming

biomod2 (version 4.2-5)

.transform_model.as.col: Transform predictions data.frame from long to wide with models as columns

Description

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

Usage

.transform_model.as.col(df)

Value

a wide data.frame

Arguments

df

a long data.frame, generally a standard output of get_predictions

Author

Remi Patin