Skip to contents

sf data frames are saved as GeoParquet.

Usage

# S4 method for class 'sf'
saveObject(x, path)

Arguments

x

A Bioconductor object of the specified class.

path

String containing the path to a directory in which to save x.

Value

x is saved into path and NULL is invisibly returned.

Examples

library(sf)
fp <- tempfile()
df <- as.data.frame(matrix(rnorm(10), ncol = 2))
df <- st_as_sf(df, coords = names(df), crs = NA)
saveObject(df, path = fp)