R/readLfmm.R

Defines functions read.lfmm

Documented in read.lfmm

read.lfmm <- 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, "lfmm")

    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.