R/check_if_data_is_eSet_list.R

Defines functions check_if_data_is_eSet_list

check_if_data_is_eSet_list <- function(data){
  
  data_is_list <- is.list(data) & !is.data.frame(data)
  
  if (data_is_list){
    data_is_eSet_list <- sapply(data, class) %>% unique %>% 
      identical("ExpressionSet")
  } else {
    data_is_eSet_list <- FALSE
  }
  
  return(data_is_eSet_list)
  
}

Try the TPP package in your browser

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

TPP documentation built on Nov. 8, 2020, 5:55 p.m.