R/equal_vector.R

Defines functions equal_vector

## Compares a vector to a value and returns a vector of logical values
##
## @param vector The vector to be compared to the value
## @param value The value each item in the vector should be compared to
##
## @return A vector of TRUE and FALSE values
##

equal_vector <- function(vector, value){
  return(abs(vector-value)<.Machine$double.eps^0.5)
}

Try the zalpha package in your browser

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

zalpha documentation built on Nov. 27, 2021, 9:06 a.m.