Learn R Programming

Rsampletrees (version 1.0.3)

print.treeoutput: Nice display of a treeoutput object

Description

This function prints out information about a treeoutput object. The component runinfo is an object of class 'pars' and is printed using print.pars. The total number of samples and their first/last index is also printed.

Usage

# S3 method for treeoutput
print(x, …)

Arguments

x

An object of class 'treeoutput'

...

additional arguments to print; currently unused

References

Burkett KM, McNeney B, Graham J. Sampletrees and Rsampletrees: sampling gene genealogies conditional on SNP genotype data. Bioinformatics. 32:1580-2, 2016

See Also

print.pars

Examples

Run this code
# NOT RUN {
#\dontrun{
#system.file("Examples/example_g_pars",package="Rsampletrees")
filename=paste(path.package("Rsampletrees"),"/extdata/example_g_pars",sep="")

runpars=readArgs(filename, check=FALSE)
#paste(system.file(package="Rsampletrees"),runpars$RunName, sep="/")
runname=paste(path.package("Rsampletrees"),"extdata",runpars$RunName,sep="/")
runpars=changeArgs(runpars, RunName=runname)
results=readOutput(argobj=runpars)

print(results)

#}
# }

Run the code above in your browser using DataLab