bootstrap | R Documentation |
This function can be used to bootstrap sequences.
bootstrap(sequence)
sequence |
sequence matrix. |
In the sequences matrix, the columns are "Taxa" and the rows are "sites". The function will bootstrap the rows.
the function returns a sequence matrix with sites randomly sampled from the original matrix with replacement.
Liang Liu
#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_sample = bootstrap(seq)
data(dat.finch)
bootstrap_sample <- bootstrap(dat.finch$seq)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.