R/isSharedProp.R

Defines functions isSharedProp

Documented in isSharedProp

#' Shared Properties
#' 
#' Determines if the given property is used by more than one of the modules in the pipeline.
#' 
#' @param propMods output of modulePerProp
#' @param propName property in question
#' @param includeMods the modules in the current pipeline
#'
#' @return boolean
#' 
isSharedProp <- function(propMods=modulePerProp(), propName, includeMods=unique(unlist(propMods))){
    propsMods = propMods[[propName]]
    countMods = intersect(propsMods, includeMods)
    if (length(countMods) > 1 ) return(TRUE)
    else( return(FALSE) )
}
IvoryC/shinyBioLockJ documentation built on May 29, 2021, 7:40 a.m.