R/readEnv.R

Defines functions read.env

Documented in read.env

read.env <- function(input.file) {

    # test arguments
        if(missing(input.file))
                stop("'input.file' argument is missing.")
        else if (!is.character(input.file))
                stop("'input.file' argument has to be of type character.")
    # check extension 
    test_extension(input.file, "env")

    return(as.matrix(read.table(input.file)));
}

Try the LEA package in your browser

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

LEA documentation built on Nov. 8, 2020, 8:19 p.m.