Builds TDA's spatial data structure from a data frame of coordinates. Each object – a point, a line or a polygon – is a group of rows sharing an id.
Arguments
- data
a data frame with an id column and two coordinate columns.
- id, x, y
the column names.
- attributes
further columns to carry along, TDA's
av=.- type
type of spatial object, TDA's
typ=: 1 for points.- options
a named list of further
sdgenoptions.- dir
working directory; the spatial file is written there and stays for the commands that read it.
See also
Other spatial analysis:
plot.tda_spatial(),
tda_map(),
tda_polygons(),
tda_read_dbf(),
tda_read_shapefile(),
tda_read_spatial,
tda_sd(),
tda_sd_analyses,
tda_sd_ps3()
Examples
d <- data.frame(id = 1:4, x = c(0, 1, 1, 0), y = c(0, 0, 1, 1))
s <- tda_spatial(d)
tda_sd_info(s)
#> Call: tda_sd_info(s)
#>
#> Cases: 4
#>
#> points lines polygons xmin ymin xmax ymax
#> 4 0 0 0 0 1 1