R/sum_zero_function.R

Defines functions sum_zero

Documented in sum_zero

#' Sum Zero
#'
#' @description Get names of columns that have a sum of zero
#' @param df dataframe
#' @keywords helper
#' @export

sum_zero=function(df){
  names(which(colSums(df)==0))
}
tydarnell/GeneticMediation documentation built on May 17, 2020, 2:33 a.m.