Package: LandR 1.2.0.9002

Eliot J B McIntire

LandR: Landscape Ecosystem Modelling in R

Utilities for 'LandR' suite of landscape simulation models. These models simulate forest vegetation dynamics based on LANDIS-II, and incorporate fire and insect disturbance, as well as other important ecological processes. Models are implemented as 'SpaDES' modules.

Authors:Eliot J B McIntire [aut, cre], Alex M Chubaty [aut], Ceres Barros [aut], Ian M S Eddy [aut], His Majesty the King in Right of Canada, as represented by the Minister of Natural Resources Canada [cph]

LandR_1.2.0.9002.tar.gz
LandR_1.2.0.9002.zip(r-4.7)LandR_1.2.0.9002.zip(r-4.6)LandR_1.2.0.9002.zip(r-4.5)
LandR_1.2.0.9002.tgz(r-4.6-x86_64)LandR_1.2.0.9002.tgz(r-4.6-arm64)LandR_1.2.0.9002.tgz(r-4.5-x86_64)LandR_1.2.0.9002.tgz(r-4.5-arm64)
LandR_1.2.0.9002.tar.gz(r-4.7-arm64)LandR_1.2.0.9002.tar.gz(r-4.7-x86_64)LandR_1.2.0.9002.tar.gz(r-4.6-arm64)LandR_1.2.0.9002.tar.gz(r-4.6-x86_64)
LandR_1.2.0.9002.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
LandR/json (API)
NEWS

# Install 'LandR' in R:
install.packages('LandR', repos = c('https://predictiveecology.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/predictiveecology/landr/issues

Pkgdown/docs site:https://landr.predictiveecology.org

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

ecological-modellinglandscape-ecosystem-modellingspadescpp

6.17 score 19 stars 3 packages 14 scripts 170 exports 107 dependencies

Last updated from:f9d7d39d2f (on development). Checks:10 WARNING, 2 OK, 1 ERROR. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64WARNING455
linux-devel-x86_64WARNING493
source / vignettesOK450
linux-release-arm64WARNING433
linux-release-x86_64WARNING435
macos-release-arm64WARNING372
macos-release-x86_64WARNING564
macos-oldrel-arm64WARNING344
macos-oldrel-x86_64WARNING572
windows-develWARNING451
windows-releaseWARNING432
windows-oldrelERROR425
wasm-releaseOK191

Exports:.compareCRS.compareRas.stackaddNoPixel2CohortDataaddPixels2CohortDataadjustAgeToLongevityaggregateRasByDTasIntasIntegerassert1assert2assertCohortDataassertCohortDataAttrassertCohortDataERGassertColumnsassertERGsassertFireToleranceDifassertPixelCohortDataassertPixelCohortDataValidassertPostPartialDistassertRepsAllCohortDataassertRstLCChangeassertSpeciesEcoregionCohortDataMatchassertSpeciesLayersassertSpeciesPlotLabelsassertSpeciesTableassertSpeciesTableRawassertSppMaxBMaxANPPassertSppVectorsassertStandAgeMapAttrassertUniqueCohortDataassignLightProbbiomodEnsembleFrcstWrapperbiomodEnsembleProjMapsbiomodEnsembleWrapperbiomodModelingWrapperbiomodProjWrapperBioSIM_extractPointsBioSIM_getMPBSLRBioSIM_getWindAnnualBioSIM_getWindMonthlycalc_raster_countscalc_raster_statscalcSeverityBcalcSiteShadecalculateClimateEffectCASFRItoSpRastscheckSpeciesTraitscohortDefinitionColsColorscolumnsForPixelGroupsconvert_SCANFI_LCC_codesconvertUnwantedLCCconvertUnwantedLCC2defineFlammabledescribeCohortDatadoResproutingdoSerotinydropTermecoregionProducerequivalentNameequivalentNameColumnextractMaxBfasterizeFromSpFireDisturbanceFireDisturbancePMfitNLMModelsgadm_canadageneratePixelGroupsgenericExtractgenPGsPostDisturbancegetSpeciesTablegetWildfire_NFIinstallBioSIMisIntLANDISDisplccMapGeneratorloadCASFRIloadkNNSpeciesLayersloadkNNSpeciesLayersValidationloadSCANFISpeciesLayersmakeAndCleanInitialCohortDatamakeBiomassMapmakeCohortDataFilesmakeDummyEcoregionFilesmakeDummyEcoregionMapmakeDummyRawBiomassMapmakeDummyRstLCCmakeDummyStandAgeMapmakeEcoregionDTmakeEcoregionMapmakeMinRelativeBmakePickellStackmakePixelGroupMapmakePixelTablemakeSpeciesEcoregionmakeVegTypeMapminRelativeBDefaultsmodifySpeciesAndSpeciesEcoregionTableNAcover2zerononForestedPixelsoverlayLCCsoverlayStackspartialggplotMLL_maxBpartitionBiomassPeatlandThermokarstpixelFateplantNewCohortsplot_rasterplot_raster_statsplotLeadingSpeciesplotSpatialplotVegTransitionsplotVTMprepEcoregionsprepEcozonesRstprepInputs_NTEMS_DominantSpeciesprepInputs_NTEMS_LCC_FAOprepInputs_NTEMS_NonforestprepInputs_SCANFI_LCC_FAOprepInputsCanDEMprepInputsEcoregionprepInputsFireYearprepInputsLCCprepInputsMainInputprepInputsSpeciesprepInputsSpeciesEcoregionprepInputsStandAgeMapprepRasterToMatchprepRawBiomassMapprepSpeciesLayers_CASFRIprepSpeciesLayers_ForestInventoryprepSpeciesLayers_KNNprepSpeciesLayers_KNN2011prepSpeciesLayers_MBFRIprepSpeciesLayers_NTEMSprepSpeciesLayers_ONFRIprepSpeciesLayers_PickellprepSpeciesLayers_SCANFIprepSpeciesTablerandomStudyAreareclassreplaceAgeInFiresrescalermMissingCohortsscheduleDisturbancespeciesEcoregionLatestYearspeciesInStudyAreaspeciesPresentFromKNNspeciesPresentFromNTEMSspeciesPresentFromSCANFIspeciesTableUpdatesppColorssppEquivChecksppHarmonizestandAgeMapGeneratorstatsModelstudyAreaEcosubsetDTsumRastersBySpeciesuniqueCohortDefinitionuniqueSpeciesEcoregionDefinitionupdateCohortDataupdateCohortDataPostHarvestupdateSpeciesTablevegTransitionsvegTypeGeneratorvegTypeMapGeneratorvtm2conifdecidWard

Dependencies:abindamcaskpassbackportsbase64encbitopsbootcallrcheckmateclassclassIntclicpp11crayoncurldata.tableDBIdigestdismodplyre1071farverfasterizefilelockFormulafpComparefsgenericsggplot2ggspatialgluegridExtragtablehmshttrhttr2insightisobandjpegjsonliteKernSmoothlabelinglatticelifecyclelme4lobstrmagrittrMASSMatrixmimeminqaMuMInnlmenloptropensslotelpakparallellypatchworkpemiscpeutilspillarpkgconfigpngprettyunitsprocessxprogressproxypspurrrquickPlotR6rappdirsrasterrbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRCurlRdpackreformulasreproducibleRequirerlangrosms2S7scalessfspSpaDES.toolsstringistringrsysterratibbletidyrtidyselecttidyterraunitsutf8vctrsviridisviridisLitewithrwk

Readme and manuals

Help Manual

Help pageTopics
'LandR' packageLandR-package LandR
Compare raster properties.compareCRS .compareRas
Fit non-linear growth model under various starting conditions.fitNLMwCovariates
Get maximum biomass coefficient names.getMaxBCoefs
Find interpolated value of light probability.interpolateLightProb
Prepare data for model plotting.MLLMaxBPartialPlotData
Prepare data for model plotting.MLLMaxBplotData
Set NA values in 'Raster' or 'SpatRaster'.NAvalueFlag .projectExtent .stack asInt isInt reclass
Add number of pixels per 'pixelGroup' and add it has a new column to 'cohortData'addNoPixel2CohortData
Generate 'cohortData' table per pixel:addPixels2CohortData
Reduces the age of cohorts that exceed their longevity x adjustmentFactoradjustAgeToLongevity
Aggregate a rasteraggregateRasByDT
Convert numeric values to rounded integersasInteger
Assertionsassert1 assert2 assertCohortData assertCohortDataAttr assertCohortDataERG assertColumns assertERGs assertFireToleranceDif assertPixelCohortData assertPixelCohortDataValid assertRepsAllCohortData assertRstLCChange assertSpeciesEcoregionCohortDataMatch assertSpeciesLayers assertSpeciesPlotLabels assertSpeciesTable assertSpeciesTableRaw assertSppMaxBMaxANPP assertSppVectors assertStandAgeMapAttr assertUniqueCohortData
Assert post-fire disturbance mortality and regenerationassertPostPartialDist
Assign light probabilityassignLightProb
Simple wrapper around 'biomod2::BIOMOD_EnsembleForecasting()'biomodEnsembleFrcstWrapper
Make maps from 'BIOMOD_EnsembleForecasting()' resultsbiomodEnsembleProjMaps
BIOMOD_EnsembleModeling wrapperbiomodEnsembleWrapper
BIOMOD_Modeling wrapperbiomodModelingWrapper
BIOMOD_Projection wrapperbiomodProjWrapper
Extract point locations from DEM raster to pass to 'BioSIM' functionsBioSIM_extractPoints
Get annual historic and projected MPB climate suitability maps from 'BioSIM'BioSIM_getMPBSLR
Get annual historic and projected wind maps from 'BioSIM'BioSIM_getWindAnnual
Get monthly historic and projected wind maps from 'BioSIM'BioSIM_getWindMonthly
Raster summary statistics and maps by polygoncalc_raster_counts calc_raster_stats plot_raster_stats
Calculate fire severitycalcSeverityB
Calculate site shadecalcSiteShade
Null climate effectcalculateClimateEffect
'CASFRItoSpRasts'CASFRItoSpRasts
Check if all species in have trait valuescheckSpeciesTraits
Default columns that define cohortscohortDefinitionCols
Helper for setting Raster or 'SpatRaster' colorsColors Colours
Default columns that define pixel groupscolumnsForPixelGroups
Convert SCANFI Landcover layers from 1-8 codes to typical Canada LCC codes (0-230)convert_SCANFI_LCC_codes
Convert Land Cover Classes (LCC) to another value in its neighbourhoodconvertUnwantedLCC
Convert Land Cover Classes (LCC) to another value in its neighbourhoodconvertUnwantedLCC2
Define flammability mapdefineFlammable
Summary for 'cohortData'describeCohortData
Activate resprouting after a (fire) disturbancedoResprouting
Activate serotiny after a (fire) disturbancedoSerotiny
Drop factor term including interactions from a model formuladropTerm
Make 'ecoregionMap' and 'ecoregion' tableecoregionProducer
Return equivalent name from a 'data.frame' of equivalenciesequivalentName equivalentNameColumn
Maximum biomass estimatorextractMaxB
Rasterize polygons using 'fasterize'fasterizeFromSp
Disturbance functionsFireDisturbance FireDisturbancePM PeatlandThermokarst
FUNCTIONS TO FIT NON-LINEAR MODELS TO ESTIMATE MAXB Wrapper function to fit non-linear growth model per species.fitNLMModels
Canada administrative boundariesgadm_canada
Add the correct 'pixelGroups' to a 'pixelDataTable' objectgeneratePixelGroups
Generic extract pointsgenericExtract
Re-generate new 'pixelGroup's in partially disturbed pixels.genPGsPostDisturbance
Download and prepare a species traits table for use with 'Biomass_core' modulegetSpeciesTable prepSpeciesTable
Download and prepare raster fire data from NFIgetWildfire_NFI
Plot estimated maximum biomass by ageggplotMLL_maxB
Install 'BioSIM' to retrieve climate and other projections using 'BioSIM'installBioSIM
Simulate a LANDIS-II dispersal process on a landscape.LANDISDisp
Calculate landcover classes based on species cohortslccMapGenerator
Load CASFRI dataloadCASFRI
Load kNN species layers from online data repositoryloadkNNSpeciesLayers
Load SCANFI species layers from online data repositoryloadSCANFISpeciesLayers
Generate initial 'cohortData' tablemakeAndCleanInitialCohortData
Create 'biomassMap'makeBiomassMap
Make the 'cohortData' table, while modifying the temporary 'pixelCohortData' that will be used to prepare other files.makeCohortDataFiles
Create dummy inputs for test simulationsmakeDummyEcoregionFiles makeDummyEcoregionMap makeDummyRawBiomassMap makeDummyRstLCC makeDummyStandAgeMap
Make the 'ecoregion' tablemakeEcoregionDT
Make the 'ecoregionMap' rastermakeEcoregionMap
Create 'minRelativeB' tablemakeMinRelativeB
'makePickellStack'makePickellStack
Create 'makePixelGroupMap'makePixelGroupMap
Make 'pixelTable' from biomass, age, land-cover and species cover datamakePixelTable
Create 'speciesEcoregion'makeSpeciesEcoregion
Make a vegetation type map from a stack of species abundancesloadkNNSpeciesLayersValidation makeVegTypeMap prepSpeciesLayers_KNN2011
minRelativeB defaults for Western Boreal Forest CanadaminRelativeBDefaults
Update 'species' and 'speciesEcoregion' tablesmodifySpeciesAndSpeciesEcoregionTable
Convert 'NA' values in 'speciesLayers' to zerosNAcover2zero
Assess non-forested pixels based on species cover data and land-covernonForestedPixels
Overlay different LCC data sourcesoverlayLCCs
Overlay layers within raster stacksoverlayStacks
Partial effect plots of maximum biomass estimates by agepartialggplotMLL_maxB
Partition biomass according to cover estimatespartitionBiomass
Create or amend data to a 'pixelFateDT' objectpixelFate
Create new cohorts based on provenance table with unique 'pixelGroup' and add to 'cohortData'plantNewCohorts
Plot raster objects using ggplotplot_raster
Leading species plotsplotLeadingSpecies
Create a 'ggplot' of a raster or 'sf' object.plotSpatial
Summary plots of leading vegetation typesplotVTM
Prepare ecoregions objectsprepEcoregions
Prepare ecozones rasterprepEcozonesRst
Obtain an Dominant species layer for a given year from NTEMSprepInputs_NTEMS_DominantSpecies
Obtain an LCC layer for a given year from NTEMS, with forest matching the FAO definitionprepInputs_NTEMS_LCC_FAO
Reclassify non-flammable pixels that become flammable - herbaceous or shrubby - vegetationprepInputs_NTEMS_Nonforest
Obtain an LCC layer for a given year from SCANFI, with forest matching the FAO definitionprepInputs_SCANFI_LCC_FAO
Get digital elevation map of CanadaprepInputsCanDEM
Prepare ecoregion tableprepInputsEcoregion
Create a raster of fire perimetersprepInputsFireYear
Simple 'prepInputs' for Canadian LCC dataprepInputsLCC
Download and prepare a species traits table for use with 'Biomass_core' moduleprepInputsMainInput prepInputsSpecies
Prepare species ecoregion tableprepInputsSpeciesEcoregion
Create 'standAgeMap'prepInputsStandAgeMap
Create 'rasterToMatch' and 'rasterToMatchLarge'prepRasterToMatch
Create 'rawBiomassMap'prepRawBiomassMap
Prepare species layersprepSpeciesLayers_CASFRI prepSpeciesLayers_ForestInventory prepSpeciesLayers_KNN prepSpeciesLayers_MBFRI prepSpeciesLayers_NTEMS prepSpeciesLayers_ONFRI prepSpeciesLayers_Pickell prepSpeciesLayers_SCANFI
Create default study areas for use with LandR modulesrandomStudyArea
Replace stand age with time since last firereplaceAgeInFires
Rescale function (as in 'scales::rescale')rescale
Remove missing cohorts from 'cohortData' based on 'pixelGroupMap'rmMissingCohorts
Test whether disturbance should be scheduledscheduleDisturbance
Pull out the values from 'speciesEcoregion' table for current timespeciesEcoregionLatestYear
Create Stacks of the 'speciesEcoregion' contentspeciesEcoregionStack
Get species list in a given study area for a forest in CanadaspeciesInStudyArea
Make a species factor raster from KNNspeciesPresentFromKNN
Make a species factor raster based on NTEMS DataspeciesPresentFromNTEMS
Make a species factor raster based on SCANFI DataspeciesPresentFromSCANFI
Change species table of parameters/traitsspeciesTableUpdate
Create species colour vector from a 'sppEquiv' tablesppColors sppColours
Table of species name equivalencies for Canadian treessppEquivalencies_CA
Check and expand 'sppEquiv'sppEquivCheck
Harmonize the three components that bring species into Biomass_** modulessppHarmonize
Produce stand age map based on 'cohortData'standAgeMapGenerator
The generic statistical model to run ('lmer' or 'glmer')statsModel
Ecological boundaries within a study areastudyAreaEco
Subset a 'data.table' with random subsampling within 'by' groupssubsetDT
Function to sum rasters of species layerssumRastersBySpecies
The columns in a 'cohortData' that define "unique"uniqueCohortDefinition uniqueSpeciesEcoregionDefinition
Add cohorts to 'cohortData' and 'pixelGroupMap'.initiateNewCohorts updateCohortData
Add cohorts to 'cohortData' and 'pixelGroupMap'updateCohortDataPostHarvest
Customize species trait table valuesupdateSpeciesTable
Generate and add vegetation type column to 'cohortData'vegTypeGenerator
Generate vegetation type mapvegTypeMapGenerator vegTypeMapGenerator.data.table vegTypeMapGenerator.default
Create a summaries of vegetation type transitionsplotVegTransitions vegTransitions vtm2conifdecid
Ward Dispersal Kernel - vectorized, optimized for speedWard WardKernel