asNFI_spatial_sf: asNFI spatial sf

View source: R/readNFI_spatial.R

asNFI_spatial_sfR Documentation

asNFI spatial sf

Description

Reconstruct an sf object from tabular NFI data and its geometry sidecar.

Usage

asNFI_spatial_sf(x, registry = getNFIgeometry_spatial(x), 
    na.action = c("keep", 
        "drop", "error"), 
    validate = TRUE)

Arguments

x

Tabular NFI object to convert to an sf object.

registry

Plot-geometry registry used to match one geometry to each row.

na.action

Action for rows whose plot key has no matching geometry: retain, remove, or raise an error.

validate

Logical; whether to validate registry keys and geometry consistency before reconstruction.

Author(s)

Wilson Lara [aut, cre] (ORCID: <https://orcid.org/0000-0003-3527-1380>), Cristobal Ordonez [aut] (ORCID: <https://orcid.org/0000-0001-5354-3760>), Aitor Vázquez-Veloso [aut] (ORCID: <https://orcid.org/0000-0003-0227-506X>), Felipe Bravo [aut] (ORCID: <https://orcid.org/0000-0001-7348-6695>)


basifoR documentation built on Aug. 26, 2026, 9:06 a.m.