| prepareData | R Documentation | 
This sorts the data, identifies parameters and function value (response), identifies pairs of response values for identical parameter values, and may set some global controls in blackbox.options().
prepareData(data, ParameterNames=NULL, respName=NULL,
            verbose=TRUE)
| data | A data frame including variables in  | 
| ParameterNames | Names of the variables to be used as predictors of the smoothed surface. If NULL, all columns except the last are assumed to hold parameter values. | 
| respName | Name of the variable to be used as response of the smoothed surface. If NULL, the last column is assumed to hold function values. | 
| verbose | Whether to print some information (in particular a message if replicate responses values are identical for given parameter values, whichwill be suspect in some applications) | 
A data frame with the required variables, ordered by increasing values as in do.call(order,data).
This may set some global controls in blackbox.options() as a side effect.
require(spaMM)
data(blackcap) ## use dataset as template
sorted_etc <- prepareData(data=blackcap,ParameterNames=c("longitude", "latitude"),
                    respName="means")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.