predFun: Inverse order in the predict function.

Description Usage Arguments Value Author(s) Examples

Description

This function is just a shorcut to change the order of the arguments for the predict function. I find this handy to use the predict function using the lapply function over several scenarios, instead of several models.

Usage

1
predFun(cD, m, ...)

Arguments

cD

Dataframe. It should be the matrix with predictor variables specified in the model.

m

Model. It should be the model to predict with the predict function.

...

Other arguments passed to the predict function. It is usefull for specify response parameter for different models.

Value

Matrix. Community matrix of predicted values from a distribution model and the corresponding predictor variables.

Author(s)

Diego Nieto Lugilde

Examples

1
2
3
4
5
6
7
8
9
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (cD, m, ...) 
{
    predict(m, cD, ...)
  }

dinilu/paleoCLMs-package documentation built on May 15, 2019, 8:46 a.m.