arg.check {phyloraster}R Documentation

Check for missing arguments in function call

Description

Check for missing arguments using function call and a provided vector with argument names to check

Usage

arg.check(
  call,
  arguments = c("LR", "inv.R", "branch.length", "n.descen", "tree")
)

Arguments

call

match.call(). To get function call with all of the specified arguments and their full names.

arguments

character. Arguments to be checked

Value

logical

Author(s)

Neander Marcel Heming

Examples


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)


[Package phyloraster version 2.1.0 Index]