Learn R Programming

biomod2 (version 4.2-5)

.categorical2numeric: Transform categorical into numeric variables

Description

Internal function transform categorical variables in a data.frame into numeric variables. Mostly used with maxent which cannot read character

Usage

.categorical2numeric(df, categorical_var)

Value

a data.frame without categorical variables

Arguments

df

data.frame to be transformed

categorical_var

the names of categorical variables in df