is.cophy: Test for the cophygenetic set object

Description Usage Arguments Details Value Functions See Also Examples

View source: R/is.cophylo.R

Description

Tests if an object is of class 'cophy'

Usage

1
2
3
is.cophy(cophy)

is.multiCophylo(multiCophy)

Arguments

cophy

an object to test to see if it is of class 'cophy'

multiCophy

an object to test for multiCophy

Details

Checks that an object is of class 'cophy'. For multicophy checks that the class is 'multiCophylo' and that each element is of class 'cophy'.

Value

A logical vector

Functions

See Also

as.cophy

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
h_lambda <- 1.0
h_mu <- 0.3
c_lambda <- 0.0
s_lambda <- 1.0
s_mu <- 0.3
s_her <- 0.0
host_symb_sets <- sim_cophyBD(hbr = h_lambda,
                                  hdr = h_mu,
                                  sbr = s_lambda,
                                  cosp_rate = c_lambda,
                                  sdr = s_mu,
                                  host_exp_rate = s_her,
                                  time_to_sim = 2.0,
                                  numbsim = 1)
is.cophy(host_symb_sets[[1]])
is.multiCophylo(host_symb_sets)

treeducken documentation built on March 3, 2021, 1:11 a.m.