R/inAnyInterval.R

########################################################################/**
# @set "class=numeric"
# @RdocMethod inAnyInterval
#
# @title "Checks if a set of values are inside one or more intervals"
#
# @synopsis
#
# \description{
#  @get "title".
# }
#
# \arguments{
#   \item{...}{Arguments passed to @seemethod "mapToIntervals".}
# }
#
# \value{
#   Returns a @logical @vector.
# }
#
# @author
# 
# \seealso{
#  @see "mapToIntervals".
# }
#
# @keyword "utilities" 
# @keyword "programming"
#*/#########################################################################  
setMethodS3("inAnyInterval", "numeric", function(...) {
  idxs <- mapToIntervals(...)
  idxs <- is.finite(idxs)
  idxs
}) # inAnyInterval()

Try the R.utils package in your browser

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

R.utils documentation built on Nov. 18, 2023, 1:09 a.m.