R/util.R

Defines functions getColumIndex isColExist viewTable `%+%`

`%+%` <- function(a, b) paste0(a, b)

`%ni%` <- Negate(`%in%`)


viewTable <- function(table) utils::View(table)


isColExist <- function(table, colname){

  if (colname %in% names(table)) {return(TRUE)}  else {return(FALSE)}
}


getColumIndex <- function(table, colname){
    index = which( colnames(table)==colname)
    return(index)
}
pyCGM2/rCGM2 documentation built on July 28, 2020, 2:09 p.m.