Description Usage Arguments Details Value See Also Examples
View source: R/check-arguments.R
Checking the arguments and convert them for internal use, if necessary.
1 |
... |
[ |
out |
[ |
.env |
[ |
See checkObject
for details.
The checked and converted arguments are assigned to
the given environment (.env
) or invisibly returned as a list
.
Other check: checkDoptions
,
checkObject
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | env = environment()
x.data = data.frame(a = 1:10, b = 20:11)
y.data = 1:10
checkVars(x.coint = x.data, y = y.data, .env = env)
x.coint
y
test = checkVars(x.coint = x.data, y = y.data, out = "return")
str(test)
# If the variables already have the "right" name,
# there's no need to do something like
# checkVars(kernel = kernel, bandwidth = bandwidth) -
# just call checkVars without specifing the arguments:
kernel = "q"
bandwidth = "a"
(checkVars(kernel, bandwidth, out = "return"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.