bootstrap: Bootstrap sequences

Description Usage Arguments Details Value Author(s) Examples

Description

This function can be used to bootstrap sequences.

Usage

1

Arguments

sequence

sequence matrix.

Details

In the sequences matrix, the columns are "Taxa" and the rows are "sites". The function will bootstrap the rows.

Value

the function returns a sequence matrix with sites randomly sampled from the original matrix with replacement.

Author(s)

Liang Liu

Examples

1
2
3
4
5
6
7
#construct the DNA sequences of three taxa
seq <- matrix("A",ncol=4,nrow=3)
rownames(seq)<-c("taxa1","taxa2","taxa3")
seq[,2]<-"G"
seq[,3]<-"C"
seq[,4]<-"T" 
bootstrap(seq)

bomeara/phybase documentation built on May 12, 2019, 11:35 p.m.