as.network-methods: Coerces an object to a 'network' object

Description Usage Arguments Value Methods Examples

Description

This function coerces Parsimnet object to network {network} object .

Usage

1
2
## S4 method for signature 'Parsimnet'
as.network(x,net=1,...)

Arguments

x

an object of class Parsimnet.

net

a numeric vector of length one indicating which network to convert.

...

additional arguments to function network.

Value

an object of class network.

Methods

signature(x = "Parsimnet")

coerces a Parsimnet object to a network object.

Examples

1
2
3
4
5
6
7
8
9
## Coercing a Parsimnet object to a network object.
data("dna.obj")
x<-dna.obj
p<-parsimnet(x)
n<-as.network(p)

#Fourth network (with only two edges)
p<-parsimnet(x,prob=.99)
n<-as.network(p,net=4)

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