Prints a transposed table of the first rows of a DuckDB table, similarly as the S3 dplyr::glimpse method.
Arguments
- conn
A
DBIConnectionobject to a DuckDB database- name
A character string of length one specifying the name of the table, or a character string of length two specifying the schema and table names. If
NULL(the default), the function returns the result as ansfobject- crs
Deprecated The coordinates reference system of the data. Specify if the data doesn't have a
crs_column, and you know the CRS.- crs_column
Deprecated a character string of length one specifying the column storing the CRS (created automatically by
ddbs_write_vector). Set toNULLif absent.- quiet
A logical value. If
TRUE, suppresses any informational messages. Defaults toFALSE.
Examples
if (FALSE) { # \dontrun{
library(duckspatial)
# create a duckdb database in memory (with spatial extension)
conn <- ddbs_create_conn(dbdir = "memory")
## read data
argentina_sf <- ddbs_open_dataset(system.file("spatial/argentina.geojson", package = "duckspatial"))
## store in duckdb
ddbs_write_table(conn, argentina_sf, "argentina")
## glimpse the inserted table
ddbs_glimpse(conn, "argentina")
} # }
