Package: usefulFuns 0.1.1

Tati Micheletti

usefulFuns: Useful functions for my modules and packages

A few functions and wrappers around useful code.

Authors:Tati Micheletti

usefulFuns_0.1.1.tar.gz
usefulFuns_0.1.1.zip(r-4.5)usefulFuns_0.1.1.zip(r-4.4)usefulFuns_0.1.1.zip(r-4.3)
usefulFuns_0.1.1.tgz(r-4.4-any)usefulFuns_0.1.1.tgz(r-4.3-any)
usefulFuns_0.1.1.tar.gz(r-4.5-noble)usefulFuns_0.1.1.tar.gz(r-4.4-noble)
usefulFuns_0.1.1.tgz(r-4.4-emscripten)usefulFuns_0.1.1.tgz(r-4.3-emscripten)
usefulFuns.pdf |usefulFuns.html
usefulFuns/json (API)

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

Peer review:

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

On CRAN:

2.00 score 1 scripts 37 exports 158 dependencies

Last updated 30 days agofrom:daae9ec736 (on development). Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKDec 25 2024
R-4.5-winNOTEDec 25 2024
R-4.5-linuxNOTEDec 25 2024
R-4.4-winOKDec 25 2024
R-4.4-macOKDec 25 2024
R-4.3-winOKDec 25 2024
R-4.3-macOKDec 25 2024

Exports:avrgTimeComparisonbiomassPerSpeciesYearGIFbiomassYearGIFbootstrapPercentChangesbringObjectTScalculatePixelsInaRulecbindFromListchangeTraitscheckPackagesVersionsclassifyWetlandscreateDynamicLayersRSFcreateModelscreateModObjectcreateShrubHerbLayerscreateStaticLayersRSFdefineStudyAreaextractDisturbanceFastforestAgePlotgetLayersgrepMultimakeReclassifyMatrixmeanValuesTimemodulesAvailablemoduleStickernameAndBringOnplotBurnSummaryplotLeadingVegetationTypeplotVegetationBiomassprepareClimateLayersprepInputsLayers_DUCKSprepInputStackprovinceBCRStudyAreareviseSpeciesTraitsRSFplotsubsetNonNARassubstrBothtotalBiomassPerSpecies

Dependencies:abindamcanimationaskpassbackportsbase64encBHbitopsbootbroomcarcarDatacheckmateclassclassIntclicodetoolscolorspacecorrplotcowplotcpp11crayoncurldata.tableDBIdeldirDerivdigestdismodoBydplyre1071effsizefansifarverfasterizefilelockFormulafpComparefsfuturefuture.applygarglegenericsggfunggimageggplot2ggplotifyggpubrggrepelggsciggsignifggspatialglobalsgluegoogledrivegridExtragridGraphicsgtablehexbinhexStickerhmshttrigraphinsightinterpisobandjpegjsonliteKernSmoothlabelingLandRlatticelatticeExtralifecyclelistenvlme4lobstrmagickmagrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkmimeminqamodelrMuMInmunsellnlmenloptrnnetnumDerivopensslparallellypbkrtestpemiscpeutilspillarpkgconfigpngpolynomprettyunitsprogressproxypryrpurrrqsquantregquickPlotR6RApiSerializerappdirsrasterrasterVisRColorBrewerRcppRcppArmadilloRcppEigenRcppParallelRCurlreproducibleRequirerlangrosmrstatixs2scalessfshowtextshowtextdbspSpaDES.coreSpaDES.toolsSparseMstringfishstringistringrsurvivalsyssysfontsterratibbletidyrtidyselecttidyterraunitsutf8uuidvctrsviridisviridisLitewhiskerwithrwkyulab.utilszoo

Readme and manuals

Help Manual

Help pageTopics
'usefulFuns' packageusefulFuns-package usefulFuns
Compare two or more scenarios for averages through timeavrgTimeComparison
Creates a GIF of biomass changebiomassPerSpeciesYearGIF
Creates a GIF of total biomass changebiomassYearGIF
Bootstrap rasters for testing significance on comparable rasters of different species or scenariosbootstrapPercentChanges
Bring objects that represent time series into a listbringObjectTS
Calculate pixels in a rulecalculatePixelsInaRule
Column binds a list of 'data.frame's or 'data.table'scbindFromList
Provides an easy way of modifying species traits table in 'LandR' by multiplication of original traits by a specified factorchangeTraits
All packages' versioningcheckPackagesVersions
Classify wetlands (really!) using the wetlands layer set as input and a either LCC05 or LCC2010classifyWetlands
Create the necessary layers for predictive caribou RSF module.createDynamicLayersRSF createStaticLayersRSF
Write an equation based on a 'data.frame' (or 'data.table'), bootstrapping a set of covariates around the standard error present in the table.createEquation
Create caribou models based on 2011 ECCC report on population demographics and RSF.createModels
Create a simulation model objectcreateModObject
Creates the necessary shrub or herb layers for predictive caribou RSF module.createShrubHerbLayers
Preparing study area for Canadian projectsdefineStudyArea
Extract disturbance of anthropogenic and fireextractDisturbanceFast
Plots of forest ageforestAgePlot
Get the necessary layers for predictive modules such as 'caribouPopGrowth' and 'caribouRSF'.getLayers
Grep using multiple patternsgrepMulti
Create a matrix to use for reclassification of rastersmakeReclassifyMatrix
Calculates the mean value of rasters through timemeanValuesTime
Show the modules that have stickers availablemodulesAvailable
Function to create stickers for 'SpaDES' modulesmoduleSticker
Name a raster, 'postProcess' it using RTM, and brings it to memorynameAndBringOn
Plots summary of burnsplotBurnSummary
Plots Leading Vegetation Type using 'cohortData' and 'pixelGroupMap'plotLeadingVegetationType
Plots vegetation biomass type using 'cohortData' and 'pixelGroupMap'plotVegetationBiomass
Create raster stack for climate sensitive modelsprepareClimateLayers
Prepare DUCKS layerprepInputsLayers_DUCKS
Simple wrapper around 'prepInputs' for a stack of raster layersprepInputStack
Preparing study area based on BCR and Canadian or American provinces or states.provinceBCRStudyArea
Bootstraps rasters for testing significance on comparable rasters of different species or scenariosreviseSpeciesTraits
ECCC's RSF plot styleRSFplot
Get all the values of a raster and remove the NA's, keeping pixel ID.subsetNonNARas
Get a sub-string based on the number of characters and the side to startsubstrBoth
Plots biomass per species: proportional or absolute, and total or just overstorytotalBiomassPerSpecies