R/read.abmi.R

Defines functions read.abmi

Documented in read.abmi

## reads data files of ABMI, removing last empty column as well
read.abmi <-
function(filename, dir=getwd(), remove.empty=TRUE, header=TRUE, sep=",", quote="\"", ...)
{
    oldir <- getwd()
    setwd(dir)
    x <- read.table(filename, header=header, sep=sep, quote=quote, ...)
    if (remove.empty) x <- x[ , -ncol(x)]
    setwd(oldir)
    return(x)
}

Try the abmiOld package in your browser

Any scripts or data that you put into this service are public.

abmiOld documentation built on May 2, 2019, 5:54 p.m.