R/calc_prop_set_in_vector.R

Defines functions calc_prop_set_in_vector

Documented in calc_prop_set_in_vector

#' Compute the proportion of set that is in vector (other set)
#' 
#' @param set A vector of elements belonging to set.
#' @param vector A vector of elements belonging to vector.
#' @export


calc_prop_set_in_vector <- function(set,vector){
  return(countOfsomething.2(set %in% vector,TRUE)/length(set))
}
msxakk89/dat documentation built on Aug. 3, 2020, 6:39 p.m.