SpatialRings               package:sp               R Documentation

_c_r_e_a_t_e _o_b_j_e_c_t_s _o_f _c_l_a_s_s _S_p_a_t_i_a_l_R_i_n_g_s _o_r _S_p_a_t_i_a_l_R_i_n_g_s_D_a_t_a_F_r_a_m_e

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

     create objects of class 'SpatialRings' or 'SpatialRingsDataFrame'
     from lists of 'Srings' objects and 'data.frame's

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

      
     Sring(coords, proj4string=CRS(as.character(NA)), hole=as.logical(NA))
     Srings(srl, ID)
     SpatialRings(Srl, pO = 1:length(Srl))
     SpatialRingsDataFrame(Sr, data, match.ID = TRUE)

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

  coords: 2-column numeric matrix with coordinates; first point (row)
          should equal last coordinates (row) 

proj4string: projection string of class CRS-class

    hole: logical value for setting ring as hole or not

     srl: list with Sring-class objects

      ID: character vector of length one with identifier

     Srl: list with objects of class Srings-class

      pO: integer vector; plotting order 

      Sr: object of class SpatialRings-class

    data: object of class 'data.frame'; the number of rows in 'data'
          should equal the number of Srings-class objects in 'Sr'

match.ID: logical: (default TRUE): match SpatialRings member Srings ID
          slot values with data frame row names, and re-order the data
          frame rows if necessary

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

     'Sring' returns an object of class 'Sring'; 'Srings' returns an
     object of class 'Srings'; 'SpatialRings' returns object of class
     'SpatialRings'; 'SpatialRingsDataFrame' returns object of class
     'SpatialRingsDataFrame'

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

     SpatialRings-class, SpatialRingsDataFrame-class

