WIP extract variables from sspm objects

# S4 method for class 'sspm_boundary'
x$name

# S4 method for class 'sspm_discrete_boundary'
x$name

# S4 method for class 'sspm_dataset'
x$name

# S4 method for class 'sspm'
x$name

Arguments

x

[sspm_...] An object from this package.

name

[character] The name of the column

Value

The data.frame matching the request.

Examples

sfa_boundaries
#> Simple feature collection with 4 features and 2 fields
#> Geometry type: MULTIPOLYGON
#> Dimension:     XY
#> Bounding box:  xmin: -64.18658 ymin: 46.00004 xmax: -46.6269 ymax: 60.84333
#> Geodetic CRS:  WGS 84
#>   sfa                       geometry               area
#> 1   4 MULTIPOLYGON (((-59.36453 5...  47575648300 [m^2]
#> 2   5 MULTIPOLYGON (((-55 53.75, ...  62857719164 [m^2]
#> 3   6 MULTIPOLYGON (((-49.9269 49... 178716060645 [m^2]
#> 4   7 MULTIPOLYGON (((-54.48779 4... 147799572836 [m^2]
bounds <- spm_as_boundary(boundaries = sfa_boundaries,
                          boundary = "sfa")
bounds$area_sfa
#> Simple feature collection with 4 features and 2 fields
#> Geometry type: MULTIPOLYGON
#> Dimension:     XY
#> Bounding box:  xmin: -64.18658 ymin: 46.00004 xmax: -46.6269 ymax: 60.84333
#> Geodetic CRS:  WGS 84
#>           area_sfa sfa                       geometry
#> 1  47575.65 [km^2]   4 MULTIPOLYGON (((-59.36453 5...
#> 2  62857.72 [km^2]   5 MULTIPOLYGON (((-55 53.75, ...
#> 3 178716.06 [km^2]   6 MULTIPOLYGON (((-49.9269 49...
#> 4 147799.57 [km^2]   7 MULTIPOLYGON (((-54.48779 4...