as.network-methods | R Documentation |
network
objectThis function coerces Parsimnet
object to network
{network}
object .
## S4 method for signature 'Parsimnet'
as.network(x,net=1,...)
x |
an object of class |
net |
a numeric vector of length one indicating which network to convert. |
... |
additional arguments to function |
an object of class network.
signature(x = "Parsimnet")
coerces a Parsimnet
object to a network
object.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.