Description Usage Arguments Author(s) Examples
View source: R/metaseqr.argcheck.R
Checks if one or more given numeric argument(s) satisfy several rules concerning numeric arguments, e.g. proper bounds or proper format (e.g. it must be a number and not a character). Mostly for internal use.
| 1 2 |     check.num.args(arg.name, arg.value, arg.type, arg.bounds,
        direction)
 | 
| arg.name | the name of the argument that is checked (for display purposes). | 
| arg.value | the value(s) of the argument to be checked. | 
| arg.type | either the string  | 
| arg.bounds | a numeric or a vector with 2 elements,
restraining  | 
| direction | a string denoting to which direction the
 | 
Panagiotis Moulos
| 1 2 3 4 5 6 7 8 | pcut <- 1.2 # A probability cannot be larger than 1! It will throw an error!
#check.num.args("pcut",pcut,"numeric",c(0,1),"botheq")
pcut <- 0.05 # Pass
check.num.args("pcut",pcut,"numeric",c(0,1),"botheq")
gc.col <- 3.4 # A column in a file cannot be real! It will throw an error!
#check.num.args("gc.col",gc.col,"integer",0,"gt")
gc.col <- 5L # Pass
check.num.args("gc.col",gc.col,"integer",0,"gt")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.