Package: n2khab 0.15.1

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.15.1.tar.gz
n2khab_0.15.1.zip(r-4.7)n2khab_0.15.1.zip(r-4.6)n2khab_0.15.1.zip(r-4.5)
n2khab_0.15.1.tgz(r-4.6-any)n2khab_0.15.1.tgz(r-4.5-any)
n2khab_0.15.1.tar.gz(r-4.7-any)n2khab_0.15.1.tar.gz(r-4.6-any)
n2khab_0.15.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
n2khab/json (API)

# 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.65 score 2 stars 1 packages 150 scripts 38 exports 41 dependencies

Last updated from:2c7c7ac6b7. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK201
source / vignettesOK248
linux-release-x86_64OK222
macos-release-arm64OK147
macos-oldrel-arm64OK117
windows-develOK129
windows-releaseOK129
windows-oldrelOK141
wasm-releaseOK191

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

Demonstrating package & data setup and handling of sf objects: a case with read_soilmap()
Minimal setup for using read_soilmap() | Install and load n2khab | Create (or locate) the n2khab_data directory with 2 subdirectories | Download the soilmap_simple data source in the correct place | Explore the soilmap_simple data source! | Access more information: the soilmap data source | Download the soilmap data source in the correct place | Explore the soilmap data source

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

Reference lists and using them
Overview | More on list contents and package functionality | Multilanguage support | Get the reference lists in R

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

Where to store the N2KHAB input data sources
Introduction | Distribution of the data sources used by n2khab functions | More about Zenodo | Local data storage | Getting started for your (collaborative) workflow

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

Working with geospatial data sources of habitat (sub)types and RIBs
Intro | Data sources | Using the read_...() functions | Returning raw data sources | Returning processed data sources | read_habitatmap_stdized() | read_habitatmap_terr() | read_watersurfaces_hab() | Matching interpreted data sources with a data frame column of types | References

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

Using the GRTS data sources
Intro | Data sources | Get the data in R | read_GRTSmh() | read_GRTSmh_diffres() | read_GRTSmh_base4frac() | References

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