R/convert_table.R

Defines functions convert_table

Documented in convert_table

convert_table <-
function(dat,function_new_type){
    if(class(dat)=="matrix"|class(dat)=="data.frame"){
        for(i in 1:dim(dat)[2]){
            dat[,i]=function_new_type(dat[,i])
        }
    }else print("The input data is not a matrix or dataframe")
    
    return(dat)
}
peterwu19881230/microbialPhenotypes documentation built on March 19, 2021, 6:36 a.m.