sdshp reads an ESRI shapefile – the .shp, its .shx
index and the .dbf of attributes – and writes TDA's spatial
data file, which is what the rest of the spatial commands work on.
Usage
tda_read_shapefile(file, dir = tempfile("tda"), ...)Value
A tda_spatial object, as tda_spatial
returns.
See also
Other spatial analysis:
plot.tda_spatial(),
tda_map(),
tda_polygons(),
tda_read_dbf(),
tda_read_spatial,
tda_sd(),
tda_sd_analyses,
tda_sd_ps3(),
tda_spatial()
Examples
if (requireNamespace("sf", quietly = TRUE)) {
nc <- tda_read_shapefile(system.file("shape/nc.shp", package = "sf"))
print(tda_sd_info(nc))
plot(nc)
}
#> Call: tda_sd_info(nc)
#>
#> Cases: 108
#>
#> points lines polygons xmin ymin xmax ymax
#> 0 0 108 -84.32385 33.88199 -75.45698 36.58965