pophelper (version 2.3.0)

readQClumpp: Convert CLUMPP format numeric text files to qlist.

Description

Takes one or more CLUMPP format numeric text files and converts them to a list of dataframes.

Usage

readQClumpp(files = NULL)

Arguments

files

A character or character vector of one or more COMBINED, ALIGNED or MERGED files. COMBINED files are generated from clumppExport. ALIGNED and MERGED files are generated by CLUMPP. Use choose.files(multi=TRUE) to select interactively.

Value

A list of lists with dataframes is returned. Each list item is named by input filename. Multiple runs within one file are suffixed by -1, -2 etc.

Examples

Run this code
# NOT RUN {
cfiles1 <- system.file("files/STRUCTUREpop_K4-combined.txt",package="pophelper")
cfiles2 <- system.file("files/STRUCTUREpop_K4-combined-aligned.txt",
package="pophelper")
cfiles3 <- system.file("files/STRUCTUREpop_K4-combined-merged.txt",
package="pophelper")

# create a qlist
clist1 <- readQClumpp(cfiles1)
clist2 <- readQClumpp(cfiles2)
clist3 <- readQClumpp(cfiles3)

# }

Run the code above in your browser using DataLab