Learn R Programming

pophelper (version 1.2.0)

summariseRunsMatrix: Summarise MATRIX runs

Description

Creates a summary table of two or more MATRIX runs with k, number of runs and individuals.

Usage

summariseRunsMatrix(data = NULL, writetable = FALSE)

Arguments

data

A dataframe with tabulated runs. An output from tabulateRunsMatrix(). Must have minimum 2 columns named k and ind.

writetable

A logical indicating if the output table is to be exported as a tab-delimited text file in the working directory.

Value

Returns a dataframe with all values of K sorted by K. The table has 3 columns namely value of K, number of runs for each K and number of individuals.

See Also

summariseRunsStructure, summariseRunsTess

Examples

Run this code
# NOT RUN {
alist <- list.files(path=system.file("files/admixture",package="pophelper"),full.names=TRUE)
tr1 <- tabulateRunsMatrix(files=alist)
summariseRunsMatrix(tr1)
# }

Run the code above in your browser using DataLab