arg.check | R Documentation |
Check for missing arguments using function call and a provided vector with argument names to check
arg.check(
call,
arguments = c("LR", "inv.R", "branch.length", "n.descen", "tree")
)
call |
match.call(). To get function call with all of the specified arguments and their full names. |
arguments |
character. Arguments to be checked |
logical
Neander Marcel Heming
geop <- function(x, tree, ...){
f4 <- arg.check(match.call(),
c("LR", "inv.R",
"branch.length", "n.descen"))
f1 <- arg.check(match.call(),
c("tree"))
c(f1, f4)
}
geop(1, 1)
geop(1)
geop(1, LR=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.