bootstrap {phybase} | 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(seq)