aRTlayer-addShape            package:aRT            R Documentation

_A_d_d _a _s_h_a_p_e_f_i_l_e _t_o _a _l_a_y_e_r

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

     Import a shapefile to a layer, without loading the data into R. It
     creates a static table to store the attributes.

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

     ## S4 method for signature 'aRTlayer':
     addShape(object, file, table, ID, length=10)

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

  object: Object of class 'aRTlayer'.

    file: File name, with .shp.

   table: Name of the table.

      ID: The name of the unique identifier of the table.

  length: The maximum length of id instances.

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

     Pedro Ribeiro de Andrade

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

     See 'aRTlayer-class' to the description of this class.
     'aRTtable-class' to the description of this class. 'read.shape'
     from 'maptools' to load the file in R (it is important to find out
     which attribute is the id before import the data to a layer).

