Skip to content
Snippets Groups Projects
Commit ba23c578 authored by Clare's avatar Clare
Browse files

Added a new helper function for comparing a value to a vector of doubles

parent 36f652d8
No related branches found
No related tags found
No related merge requests found
## 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){
tempFunction<-function(x,value){
isTRUE(all.equal(x,value))
}
return(sapply(vector,tempFunction,value))
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment