boot.dna-methods: Generates single bootstrap replicate

Description Usage Arguments Value Methods Author(s) Examples

Description

Methods for generating a single bootstrap replicate.

Usage

1
2
## S4 method for signature 'Dna'
boot.dna(x,replacement=TRUE)

Arguments

x

an object of class Dna.

replacement

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

Value

an object of class Dna.

Methods

signature(x = "Dna")

generates single bootstrap replicate from a Dna object.

Author(s)

Caner Aktas, caktas.aca@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
	
	
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)

haplotypes documentation built on Feb. 28, 2020, 5:08 p.m.