R/null_notnull_operator.R

Defines functions `%||%`

#'NULL/NOT NULL Infix Operator
#'
#'\code{%||%} NULL/NOT NULL Infix Operator
#'
#'  
#'  
#'@return NULL
#'  
#' @examples
#' 
#'@export
`%||%` <- function(lfs, rhs) {
  if (!is.null(lhs)) {
    lhs
  } else {
    rhs
  }
}
jamesmartherus/martherus documentation built on April 12, 2020, 7:01 p.m.