Skip to content

n2khab 0.13.0

Choose a tag to compare

@florisvdh florisvdh released this 19 Dec 20:33
· 97 commits to main since this release
v0.13.0
3d6b868

Breaking change

  • read_watersurfaces_hab() has gained an argument collapse, which is TRUE by default (#203).
    It reduces the watersurfaces_types element of the list output to unique combinations of polygon_id and type, hereby collapsing the code_orig and certain columns as needed.

    • This form better reflects the user's needs.
      Since this breaks previous behaviour, you may want to check for changed (improved?) results of existing code when using this version of {n2khab}.
      If needed, use collapse = FALSE.
    • Future versions of watersurfaces_hab are expected to implement this in the data source itself, but with interpreted = TRUE further collapsing by the function remains necessary to maintain uniqueness by polygon_id and type.

    Refer to inbo/n2khab-preprocessing/issues/78 for more information.

New features

  • New function read_favenv() to return favourable environmental ranges of types (#195).
  • expand_types() gains an argument mark (#198).
    If set as TRUE, the logical columns has_been_expanded and added_by_expansion are added.
    These mark rows as origin or destination of type expansion, respectively.
  • New utility convert_line_endings() to maintain text file integrity (checksums) across platforms (#208).
    See its documentation for advice on line endings management in combination with a distributed version control system like Git, or with text file generating functions such as git2rdata::write_vc().

Support for interim data source versions

The following interim data source versions are now supported by the corresponding functions (#200):

  • habitatmap_stdized_2024_v99_interim (read_habitatmap_stdized())
  • habitatmap_terr_2024_v99_interim (read_habitatmap_terr())
  • watersurfaces_hab_v6.1_interim (read_watersurfaces_hab())

Function documentation was updated accordingly.
Interim versions are added only at the end of the version argument of the read functions, since they do not receive the same level of quality control.
Please note that it is advised to use a regular version of these data sources instead.