Description Usage Arguments Value Examples
smoothtrails
| 1 2 3 4 5 6 7 8 | smoothtrails(
  paths,
  pts,
  plots,
  partmaintrails,
  smthfact = 5,
  advancedloggingparameters = loggingparameters()
)
 | 
| paths | Raw secondary trails polygons (sp polylines). | 
| pts | Harvested tree locations (sf points). | 
| plots | Studied plots (sf data.frame) | 
| partmaintrails | Intersections between accessible area and Maintrails (sf polygon) | 
| smthfact | A positive number controlling the smoothness and level of generalization (numeric). | 
| advancedloggingparameters | Advanced parameters of the logging simulator. | 
Smoothed secondary trails polygons.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | ## Not run: 
data(DTMParacou)
data(Paracou6_2016)
data(HarvestablePolygons)
data(MainTrails)
data(Plots)
data(PlotSlope)
data("SpeciesCriteria")
scenarios <- scenariosparameters(scenario = "RIL3", objective = 15)
inventory <- ONFGuyafortaxojoin(addtreedim(inventorycheckformat(Paracou6_2016),
 volumeparameters = ForestZoneVolumeParametersTable),SpeciesCriteria)
AccessPolygons <- FilterAccesExplArea(harvestablepolygons = HarvestablePolygons,
maintrails = MainTrails,
winching = scenarios$winching,
advancedloggingparameters = loggingparameters())
treeselectionoutputs <- treeselection(inventory,
topography = DTMParacou, accesspolygons= AccessPolygons, plotslope = PlotSlope,
speciescriteria = SpeciesCriteria, objective = scenarios$objective,
scenario ="manual", fuel = "2", diversification = TRUE, specieslax = FALSE,
objectivelax = TRUE,
advancedloggingparameters = loggingparameters())
SecondTrailsRaw <- secondtrailsopening(DTM = DTMParacou, plotslope =  PlotSlope,plots = Plots,
  harvestablepolygons = HarvestablePolygons, maintrails = MainTrails, treeselectionoutputs,
  CostMatrix = list(list(list(Slope = 3, Cost = 3),
                           list(Slope = 5, Cost = 5),
                           list(Slope = 12, Cost = 20),
                           list(Slope = 22, Cost = 60),
                           list(Slope = 27, Cost = 600),
                           list(Slope = Inf, Cost = 1000)),
                      list(list(CostType = "Initial", CostValue = 1000),
                           list(CostType = "Access", CostValue = 1000),
                           list(CostType = "BigTrees", CostValue = 500),
                           list(CostType = "Reserves", CostValue = 500),
                           list(CostType = "Futures", CostValue = 50),
                           list(CostType = "maintrails", CostValue = 1E-4),
                           list(CostType = "SecondTrails", CostValue = 0.1))),
 scenarios = scenarios,
 fact = 3,
 advancedloggingparameters = loggingparameters())
 SecondTrailsSmth <- smoothtrails(paths = SecondTrailsRaw[[1]],
                                 plots = Plots,
                                   )
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.