R/mls.import.R

`mls.import` <-
function (filename, enc="latin1", modif.names=TRUE) {
  tmp <- read.table(file(filename,encoding=enc),header=TRUE,sep="\t",quote="",na.strings="")
  if (modif.names) {
    colnames(tmp) <- tolower(colnames(tmp))
    colnames(tmp) <- gsub(" ","_",colnames(tmp))
  }
  tmp
}

Try the rgrs package in your browser

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

rgrs documentation built on May 2, 2019, 4:54 p.m.