n2khab 0.13.0
Breaking change
-
read_watersurfaces_hab()has gained an argumentcollapse, which isTRUEby default (#203).
It reduces thewatersurfaces_typeselement of the list output to unique combinations ofpolygon_idandtype, hereby collapsing thecode_origandcertaincolumns 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, usecollapse = FALSE. - Future versions of
watersurfaces_habare expected to implement this in the data source itself, but withinterpreted = TRUEfurther collapsing by the function remains necessary to maintain uniqueness bypolygon_idandtype.
Refer to inbo/n2khab-preprocessing/issues/78 for more information.
- This form better reflects the user's needs.
New features
- New function
read_favenv()to return favourable environmental ranges of types (#195). expand_types()gains an argumentmark(#198).
If set asTRUE, the logical columnshas_been_expandedandadded_by_expansionare 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 asgit2rdata::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.