Initial setting of a new classTreeRingShape (TR)

new_classTreeRingShape(
  P_filename,
  L_filename,
  L2_filename,
  P_id.tag = "id",
  P_ring.tag = "ring",
  L_ring.tag = "ring"
)

Arguments

P_filename

file name of shape file (P) for tree ring points

L_filename

file name of shape file (L) for tree ring lines

L2_filename

file name of shape file (L2) for tree ring lines interpolated

P_id.tag

column name of id in shape file (P), default is 'id'

P_ring.tag

column name of ring no.(ordinaly year,outermost=0) in shape file (L), default is 'ring'

L_ring.tag

column name of ring no.(ordinaly year,outermost=0) in shape file (L), default is 'ring'

Value

generated new object from classTreeRingShape

Examples

TR_<-new_classTreeRingShape(
P_filename='Abies_277_h400_TreeRing_Points.shp',
L_filename='Abies_277_h400_TreeRing_Representative.shp',
L2_filename='Abies_277_h400_TreeRing.shp',
P_id.tag='id',
P_ring.tag='ring',
L_ring.tag='ring')

 TR_
#> An object of class "classTreeRingShape"
#> Slot "P_filename":
#> [1] "Abies_277_h400_TreeRing_Points.shp"
#> 
#> Slot "P_id.tag":
#> [1] "id"
#> 
#> Slot "P_ring.tag":
#> [1] "ring"
#> 
#> Slot "P":
#> data frame with 0 columns and 0 rows
#> 
#> Slot "P00":
#> numeric(0)
#> 
#> Slot "n_id":
#> numeric(0)
#> 
#> Slot "YR_P":
#> numeric(0)
#> 
#> Slot "L_filename":
#> [1] "Abies_277_h400_TreeRing_Representative.shp"
#> 
#> Slot "L_ring.tag":
#> [1] "ring"
#> 
#> Slot "L":
#> list()
#> 
#> Slot "L_":
#> data frame with 0 columns and 0 rows
#> 
#> Slot "YR_L":
#> numeric(0)
#> 
#> Slot "ln":
#> numeric(0)
#> 
#> Slot "L2_filename":
#> [1] "Abies_277_h400_TreeRing.shp"
#> 
#> Slot "L2":
#> list()
#> 
#> Slot "n_YR":
#> numeric(0)
#> 
 slotNames(TR_)
#>  [1] "P_filename"  "P_id.tag"    "P_ring.tag"  "P"           "P00"        
#>  [6] "n_id"        "YR_P"        "L_filename"  "L_ring.tag"  "L"          
#> [11] "L_"          "YR_L"        "ln"          "L2_filename" "L2"         
#> [16] "n_YR"       
 str(TR_)
#> Formal class 'classTreeRingShape' [package "TreeRingShape"] with 16 slots
#>   ..@ P_filename : chr "Abies_277_h400_TreeRing_Points.shp"
#>   ..@ P_id.tag   : chr "id"
#>   ..@ P_ring.tag : chr "ring"
#>   ..@ P          :'data.frame':	0 obs. of  0 variables
#> Formal class 'data.frame' [package "methods"] with 4 slots
#>   .. .. ..@ .Data    : list()
#>   .. .. ..@ names    : chr(0) 
#>   .. .. ..@ row.names: int(0) 
#>   .. .. ..@ .S3Class : chr "data.frame"
#>   ..@ P00        : num(0) 
#>   ..@ n_id       : num(0) 
#>   ..@ YR_P       : num(0) 
#>   ..@ L_filename : chr "Abies_277_h400_TreeRing_Representative.shp"
#>   ..@ L_ring.tag : chr "ring"
#>   ..@ L          : list()
#>   ..@ L_         :'data.frame':	0 obs. of  0 variables
#> Formal class 'data.frame' [package "methods"] with 4 slots
#>   .. .. ..@ .Data    : list()
#>   .. .. ..@ names    : chr(0) 
#>   .. .. ..@ row.names: int(0) 
#>   .. .. ..@ .S3Class : chr "data.frame"
#>   ..@ YR_L       : num(0) 
#>   ..@ ln         : num(0) 
#>   ..@ L2_filename: chr "Abies_277_h400_TreeRing.shp"
#>   ..@ L2         : list()
#>   ..@ n_YR       : num(0)