Learn R Programming

haplotypes (version 1.1.3.1)

boot.dna-methods: Generates single bootstrap replicate

Description

Methods for generating a single bootstrap replicate.

Usage

# S4 method for Dna
boot.dna(x,replacement=TRUE)

Value

an object of class Dna.

Arguments

x

an object of class Dna.

replacement

boolean; whether the sampling is done with replacement or without replacement.

Methods

signature(x = "Dna")

generates single bootstrap replicate from a Dna object.

Author

Caner Aktas, caktas.aca@gmail.com

Examples

Run this code
	
	
data("dna.obj")
x<-dna.obj

## Generating a bootstrap replicate.
# with replacement
bxr<-boot.dna(x)
image(bxr)

# without replacement
bx<-boot.dna(x,replacement=FALSE)
image(bx)

Run the code above in your browser using DataLab