n2khab 0.15.0
Breaking changes
read_watersurfaces_hab()has lost its argumentinterpreted.
Its former defaultFALSEis the behaviour that is continued.
It was found (#221) that the rationale forinterpreted = TRUEwas based on wrong assumptions; occurrences coded as main type3130cannot be interpreted as one specific subtype.read_habitatmap_terr()andread_watersurfaces_hab()now always use the same element names in the returned list, regardless of the data source version.
(Before, old package behaviour was still imitated for some old data source versions, but this is not the best approach.)- The 'xxx_polygons' element in the returned list of
read_habitatmap_stdized(),read_habitatmap_terr()andread_watersurfaces_hab()gains two extra attribute columns since the newest data source versions (below):year_assessment(the year when the types in the polygon have been assessed) andmethod_assessment(the method used to assess the types in the polygon). read_habitatsprings(units_7220 = TRUE)now concatenates thesystem_typeandsourcevalues of the corresponding points.
New features
-
expand_types()now expands subtypes3130_aomand3130_nato their main type, following #221. -
The following new data source versions are now supported by the corresponding functions (#215; inbo/n2khab-preprocessing/pull/79):
habitatmap_2025(read_habitatmap())habitatmap_stdized_2025_v1(read_habitatmap_stdized())habitatmap_terr_2025_v1(read_habitatmap_terr())watersurfaces_hab_v7(read_watersurfaces_hab())watersurfaces_refpoints_v7(read_watersurfaces_refpoints())habitatstreams_2025(read_habitatstreams())habitatsprings_2025v2(read_habitatsprings())
Function documentation was updated accordingly.
Some noteworthy changes and fixes in data sources:read_watersurfaces_hab(): the argumentcollapseis ignored since data source versionwatersurfaces_hab_v7because the 'collapse' step is now part of the workflow to create the data source (solving issue #78).watersurfaces_hab_v7: duplication inside concatenated strings is fixed (solving issue #75).habitatmap_terr_2025_v1:- Less polygons have been regarded as 'exclusively aquatic' (hence excluded from the data set), by no longer using the phab sum to do this.
- Type
6230has been interpreted as6230_hmoifcode_origis"6230,6410".
-
read_habitatsprings()has gained an argumentfilter_systemto filter the system type in a conservative way, i.e. including system type 'unknown' if 'mire' or 'rivulet' are requested.
It also works with the concatenatedsystem_typecolumn forread_habitatsprings(units_7220 = TRUE).