R/deleteCol.R

Defines functions deleteCol

Documented in deleteCol

#' @title Delete column in a dataframe or matrix
#' 
#' @description Function to delete column in a dataframe or matrix
#' 
#' @param tbl - dataframe or matrix from which to delete column
#' @param col - name of column to delete
#' 
#' @return dataframe or matrix with column removed
#' 
#'@export
#'
deleteCol<-function(tbl,col){
    tblp<-tbl[,(names(tbl)!=col)];
    return(tblp);
}
wStockhausen/wtsUtilities documentation built on March 16, 2024, 10:38 a.m.