ndb_get_tbl() no longer assumes NOVANA:
novana is renamed akt_ids and kv is renamed kv_status; the old names are deprecated.kv_status is now an integer vector of statusIds to keep, e.g. c(20L, 30L, 100L) (KS0 Kladde, KS2 Dataprod. KS, KS3 Godkendt). Rows are filtered on raw.stamdata.statusId, and the status text is added. Passing a table of status, as before, still works but is deprecated.kv_status instead of the table passed to the function.The hard-coded progIds are now default arguments, so new programs can be added without changing the package. Defaults are unchanged.
ndb_filter_skov_prog() and ndb_filter_lysaaben_prog() gain prog_ids.ndb_clean_lysaaben_struktur() gains prog_ids_5m, prog_ids_graesning, prog_ids_slaaning and prog_ids_slaaning_2009, which control where missing values are set to 0.New ndb_filter_novana() holds the NOVANA rule in one place: formaalId 1 and ansvarligMyndighedId 1016318600 by default, both overridable. ndb_get_novana_aktids() now uses it, filtering on IDs instead of the formaal and ansvarligMyndighed text. The two map one-to-one, so the result is unchanged.
ndb_clean_plantekemi() to remove a few species that were not part of the sampling protocol. Also fix a few cases where multiple artIds were used for the same artsNavn.ndb_calc_n_store_stammer() where 10m circle counts were only scaled up by 1.5 (and not 2.25)ndb_calc_n_store_stammer()ndb_append_coords() and tests.ndb_clean_plantekemi()ndb_get_plantekemi()ndb_calc_avg() and test.ndb_get_ellenberg_eng -> ndb_get_ellenberg() after addition of TEllTysk.ndb_calc_n_arter() and tests.ndb_get_artsnavne() to work for both plants and bryophytes.ndb_calc_weighted_assessment() instead.n_hulheder_raad_samplet_15m.ndb_get_schema() instead.ndb_label() function to create labels from variable names.ndb_rename() and update testsndb_rename()ndb_rename()ndb_rename()ndb_namesndb_calc_cover_ratio(). Add more tests.ndb_calc_cover_ratio()schema_treendb_calc_jord_cn()schema_treendb_aggregate_pinpoint()ndb_filter_artsliste()ndb_get_artsliste()ndb_get_artsnavne()ndb_get_artstraits()ndb_get_doedtved()ndb_get_ellenberg_eng()ndb_get_laver()ndb_get_lysaaben_struktur()ndb_get_skov_trae_diam_naturtype()ndb_get_skov_traeregistrering()ndb_get_skov_struktur()ndb_get_stamdata()ndb_get_novana_aktids()ndb_get_plantekemi()ndb_get_artsgruppe()ndb_to_percent()NEWS.md file to track changes to the package.