R/getReadSaveObj.CSV.R

Defines functions getReadSaveObj.CSV

Documented in getReadSaveObj.CSV

#' @describeIn getReadSaveObj reading/writing from/to simple CSV file
getReadSaveObj.CSV <- function() {
    return(list(save = function(obj, filePath) {
        utils::write.table(x = obj, file = filePath, append = FALSE, na = "NA", row.names = FALSE, col.names = TRUE)
    }, read = function(filePath) {
        return(utils::read.table(file = filePath, header = T, stringsAsFactors = TRUE) )
    }))
}
bnbsystems/ddt documentation built on May 24, 2019, 3:04 a.m.