TreeRingShape: Construct a object (TR) of classTreeRingShape

View source: R/TreeRingsInterpolation.R

TreeRingShapeR Documentation

Construct a object (TR) of classTreeRingShape

Description

Construct a object (TR) of classTreeRingShape

Usage

TreeRingShape(
  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 (without extention)

L_filename

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

L2_filename

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

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



test_TreeRingShape <- function(){
oldwd <- getwd()
on.exit(setwd(oldwd))
setwd(system.file("shp",package = "TreeRingShape"))

TR.<-TreeRingShape(
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')

 slotNames(TR.)
 str(TR.)
 Lplot(TR.@L2)
 return(TR.)
}

 TR. <- test_TreeRingShape()
 DiskInfo(TR.)


TreeRingShape documentation built on April 4, 2025, 5:10 a.m.