Learn R Programming

pophelper (version 1.2.0)

summariseRunsStructure: Summarise STRUCTURE runs

Description

Creates a summary table of several STRUCTURE runs with means and std deviation.

Usage

summariseRunsStructure(data = NULL, writetable = FALSE)

Arguments

data

A dataframe with tabulated runs. An output from tabulateRunsStructure(). Must have minimum 4 columns named k, ind, loci and elpd.

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 loci, ind and K. The table has 6 columns namely mean estimated ln probability of data, standard deviation, value of K, Number of runs for each K, number of individuals, number of loci, estimated ln probability of data plus standard deviation, estimated ln probability of data minus standard deviation.

See Also

summariseRunsTess, summariseRunsMatrix

Examples

Run this code
# NOT RUN {
slist <- list.files(path=system.file("files/structure",package="pophelper"),full.names=TRUE)
tr1 <- tabulateRunsStructure(files=slist)
summariseRunsStructure(tr1)
# }

Run the code above in your browser using DataLab