R/obj1_or_classes.R

#+--------------------------------------------------+
#|  R matching with spluss NULL values              |
#|                                                  |

setClassUnion("callorNULL", c("formula","call", "NULL"))
setClassUnion("integerorNULL", c("integer", "NULL"))
setClassUnion("numericorNULL", c("numeric", "NULL"))
setClassUnion("characterorNULL", c("character", "NULL"))
setClassUnion("logicalorNULL", c("logical", "NULL"))
setClassUnion("listorNULL", c("list", "NULL"))

setClassUnion("functionorNULL", c("function", "NULL"))
setClassUnion("expressionorNULL", c("expression", "NULL"))
setClassUnion("vectororNULL", c("vector", "NULL"))
setClassUnion("matrixororNULL", c("matrix", "NULL"))
setClassUnion("vectororMatrix", c("vector", "matrix"))

Try the nlr package in your browser

Any scripts or data that you put into this service are public.

nlr documentation built on July 31, 2019, 5:09 p.m.