con.regmat             package:prabclus             R Documentation

_C_o_n_n_e_c_t_e_d _r_e_g_i_o_n_s _p_e_r _s_p_e_c_i_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Returns a vector of the numbers of connected regions per species
     for a presence-absence matrix.

_U_s_a_g_e:

     con.regmat(regmat, neighbors, count = TRUE)

_A_r_g_u_m_e_n_t_s:

  regmat: 0-1-matrix. Columns are species, rows are regions.

neighbors: A list with a component for every region. The components are
          vectors of integers indicating neighboring regions. A region
          without neighbors (e.g., an island) should be assigned a list
          'numeric(0)'.

   count: logical. If 'TRUE', the number of the currently processed
          species is printed.

_D_e_t_a_i_l_s:

     Uses 'con.comp'.

_V_a_l_u_e:

     Vector of numbers of connected regions per species.

_N_o_t_e:

     Designed for use in 'prabtest'.

_A_u_t_h_o_r(_s):

     Christian Hennig hennig@math.uni-hamburg.de <URL:
     http://www.math.uni-hamburg.de/home/hennig/>

_S_e_e _A_l_s_o:

     'con.comp', 'prabtest'

_E_x_a_m_p_l_e_s:

     data(nb)
     # Note: If you do not use the installed package, replace this by
     # nb <- list()
     # for (i in 1:34)
     #   nb <- c(nb,list(scan(file="(path/)nb.dat",
     #                   skip=i-1,nlines=1)))
     set.seed(888) 
     cp <- cluspop.nb(nb, p.nb=0.1, n.species=10, clus.specs=9,
                      reg.group=1:17,vector.species=c(10))
     con.regmat(cp,nb)

