R/readList.R

Defines functions readList

Documented in readList

readList <- function(file) {
    f <- readLines(file)
    lst = sapply(f, function(x) unlist(strsplit(x, "\t", fixed = TRUE)))
    names(lst) = sapply(lst, function(x) x[1])
    lst = lapply(lst, function(x) x[-(1:2)])
    return(lst)
}
 

Try the gage package in your browser

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

gage documentation built on Dec. 13, 2020, 2:01 a.m.