uc.check {RGeostats} | R Documentation |
Check the validity of the Drift information
uc.check(uc = c("1"), ndim = 2)
uc |
This argument contains the Drift information. It can be:
|
ndim |
The space dimension. This is only needed when argument 'uc' is provided as the order of the Random Function. |
Note the following pitfall:
uc.check(1,ndim=2) returns the list c("1", "x", "y")
uc.check("1",ndim=2) returns the list c("1")
The function returns a list of drift basic terms. When the argument 'uc' is provided as the degree of the Random Function (and given the space dimension), the corresponding set of basic drift terms is returned.
If the argument 'uc' contains an invalid drift basic term, the list of all possible keywords is printed.
uc.check(c("1","x","y")) # returns "1" "x" "y" uc.check(2,ndim=1) # returns "1" "x" "x2" ## Not run: uc.check("drift") # returns an error and prints the list ## End(Not run)