Package: n2khab 0.14.0

Floris Vanderhaeghe

n2khab: Providing Preprocessed Reference Data for Flemish Natura 2000 Habitat Analyses

The n2khab package is an R package with preprocessing functions and standard reference data, useful for analyses regarding Flemish Natura 2000 habitats and regionally important biotopes (RIBs).

Authors:Floris Vanderhaeghe [aut, cre], Toon Westra [aut], Cécile Herr [aut], Hans Van Calster [aut], Dries Adriaens [ctb], Maud Raman [ctb], Jan Wouters [ctb], Steven De Saeger [ctb], Els Lommelen [ctb], Luc Denys [ctb], An Leyssen [ctb], Patrik Oosterlynck [ctb], Jeroen Vanden Borre [ctb], Nathalie Cools [ctb], Bruno De Vos [ctb], Suzanna Lettens [ctb], Arne Verstraeten [ctb], Research Institute for Nature and Forest [cph]

n2khab_0.14.0.tar.gz
n2khab_0.14.0.zip(r-4.7)n2khab_0.14.0.zip(r-4.6)n2khab_0.14.0.zip(r-4.5)
n2khab_0.14.0.tgz(r-4.6-any)n2khab_0.14.0.tgz(r-4.5-any)
n2khab_0.14.0.tar.gz(r-4.7-any)n2khab_0.14.0.tar.gz(r-4.6-any)
n2khab_0.14.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
n2khab/json (API)
NEWS

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

Bug tracker:https://github.com/inbo/n2khab/issues

Pkgdown/docs site:https://inbo.github.io

On CRAN:

Conda:

habitatnatura2000preprocessing-functionsreproducibility

6.44 score 2 stars 1 packages 185 scripts 38 exports 41 dependencies

Last updated from:8550729a8d. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK192
source / vignettesOK265
linux-release-x86_64OK186
macos-release-arm64OK125
macos-oldrel-arm64OK274
windows-develOK119
windows-releaseOK427
windows-oldrelOK132
wasm-releaseOK152

Exports:checksumconvert_base4frac_to_decconvert_dec_to_base4fracconvert_line_endingsdownload_zenodoexpand_typesfileman_foldersfileman_upget_zenodo_versionslocate_n2khab_datamd5sumn2khab_optionsread_admin_areasread_ecoregionsread_env_pressuresread_favenvread_GRTSmhread_GRTSmh_base4fracread_GRTSmh_diffresread_habitatmapread_habitatmap_stdizedread_habitatmap_terrread_habitatquarriesread_habitatspringsread_habitatstreamsread_namelistread_raster_runifread_scheme_typesread_schemesread_shallowgroundwaterread_soilmapread_typesread_watercourse_100msegread_watersurfacesread_watersurfaces_habread_watersurfaces_refpointssha256sumxxh64sum

Dependencies:assertthatclassclassIntclicpp11curlDBIdplyre1071forcatsgenericsgit2rgit2rdataglueKernSmoothlifecyclemagrittrMASSpillarpkgconfigplyrproxypurrrR6Rcppremotesrlangrprojroots2sfstringistringrtibbletidyrtidyselectunitsutf8vctrswithrwkyaml

Reference lists and using them

Rendered fromv010_reference_lists.Rmdusingknitr::rmarkdownon May 09 2026.

Last update: 2023-12-01
Started: 2019-07-02

Where to store the N2KHAB input data sources

Rendered fromv020_datastorage.Rmdusingknitr::rmarkdownon May 09 2026.

Last update: 2023-12-01
Started: 2019-07-02

Demonstrating package & data setup and handling of sf objects: a case with read_soilmap()

Rendered fromv022_example.Rmdusingknitr::rmarkdownon May 09 2026.

Last update: 2024-10-03
Started: 2020-05-08

Working with geospatial data sources of habitat (sub)types and RIBs

Rendered fromv025_geospatial_hab.Rmdusingknitr::rmarkdownon May 09 2026.

Last update: 2023-12-01
Started: 2020-01-30

Using the GRTS data sources

Rendered fromv030_GRTSmh.Rmdusingknitr::rmarkdownon May 09 2026.

Last update: 2023-12-01
Started: 2019-07-02

Readme and manuals

Help Manual

Help pageTopics
Calculate file checksumschecksum md5sum sha256sum xxh64sum
Convert a vector of base 4 fractions into (truncated) decimal integer valuesconvert_base4frac_to_dec
Convert a vector of values from the 'GRTSmaster_habitats' data source to base 4 fractionsconvert_dec_to_base4frac
Convert line endings of text filesconvert_line_endings
Get data from a Zenodo archivedownload_zenodo
Documentation of included data source 'env_pressures'env_pressures
Expand a 'type' column in a data frameexpand_types
Create a standard data folder structure and return the path to the 'n2khab_data' folderfileman_folders
Climb up in the file system hierarchy to find a file or folderfileman_up
Get version IDS from a Zenodo archiveget_zenodo_versions
Locate the 'n2khab_data' directorylocate_n2khab_data
Package configuration through options and environment variablesn2khab_options
Documentation of included data source 'namelist'namelist
Return one of the available geospatial data sources representing administrative areasread_admin_areas
Return the 'ecoregions' data source as an 'sf' objectread_ecoregions
Return the 'env_pressures' data source as a tibble with human-readable attributesread_env_pressures
Read favourable environmental ranges for 'types'read_favenv
Return the 'GRTSmaster_habitats' data source or a 10-layered variant as a SpatRaster objectread_GRTSmh
Return the processed data source 'GRTSmh_base4frac' as a SpatRasterread_GRTSmh_base4frac
Return a SpatRaster or an 'sf' polygon layer from the processed data source 'GRTSmh_diffres'read_GRTSmh_diffres
Return the data source 'habitatmap' as an 'sf' multipolygon layerread_habitatmap
Return the data source 'habitatmap_stdized' as a list of two objectsread_habitatmap_stdized
Return the data source 'habitatmap_terr' as a list of two objectsread_habitatmap_terr
Return the data source 'habitatquarries'read_habitatquarries
Return the data source 'habitatsprings' as an 'sf' point layerread_habitatsprings
Return the data source 'habitatstreams' as an 'sf' linestring layer or as a listread_habitatstreams
Return the 'namelist' data source as a tibbleread_namelist
Return the data source 'raster_runif' as a SpatRasterread_raster_runif
Return the data source 'shallowgroundwater' as an 'sf' multipolygon layerread_shallowgroundwater
Return the 'soilmap' or 'soilmap_simple' data source as an 'sf' multipolygon layerread_soilmap
Return the 'types' data source as a tibble with names & shortnamesread_types
Return the processed data source 'watercourse_100mseg'read_watercourse_100mseg
Return the data source 'watersurfaces' as an 'sf' polygon layerread_watersurfaces
Return the data source 'watersurfaces_hab' as a list of two objectsread_watersurfaces_hab
Return the 'watersurfaces_refpoints' data source as an 'sf' point layer or as a tibbleread_watersurfaces_refpoints
Documentation of included data source 'types'types