https://github.com/cran/fields
Tip revision: 6a574ee78277f7f38ae7939a12894c1616dc61eb authored by Douglas Nychka on 16 October 2015, 01:28:36 UTC
version 8.3-5
version 8.3-5
Tip revision: 6a574ee
supportsArg.R
# fields, Tools for spatial data
# Copyright 2004-2007, Institute for Mathematics Applied Geosciences
# University Corporation for Atmospheric Research
# Licensed under the GPL -- www.gpl.org/licenses/gpl.html
supportsArg = function(fun=stationary.cov, arg) {
if(is.null(fun)) {
#set fun to the default covariance function if not specified
fun = stationary.cov
}
argNames = names(as.list(args(fun)))
return(any(argNames == arg))
}