sd_read.RdResolves the reader from format, or from the file extension when format
is NULL. The query is executed lazily when results are requested.
One or more paths or URIs.
A named list of scalar reader or object-store options.
An optional file format name such as "parquet", "csv",
or "json". By default the format is inferred from the path extension.
Optional character vector of hive-style partition column
names. NULL auto-discovers partitions; character() disables discovery.
Whether to check extensions for explicitly selected
formats, including compression inference. Directory listings are always
filtered to matching files. Defaults to FALSE.
A SedonaDB context.
A sedonadb_dataframe
path <- system.file("files/natural-earth_cities_geo.parquet", package = "sedonadb")
sd_read(path) |> head(5) |> sd_preview()
#> <sedonab_dataframe: ?? x 2>
#> ┌──────────────┬───────────────────────────────┐
#> │ name ┆ geometry │
#> │ utf8 ┆ geometry │
#> ╞══════════════╪═══════════════════════════════╡
#> │ Vatican City ┆ POINT(12.4533865 41.9032822) │
#> ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
#> │ San Marino ┆ POINT(12.4417702 43.9360958) │
#> ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
#> │ Vaduz ┆ POINT(9.5166695 47.1337238) │
#> ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
#> │ Lobamba ┆ POINT(31.1999971 -26.4666675) │
#> ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
#> │ Luxembourg ┆ POINT(6.1300028 49.6116604) │
#> └──────────────┴───────────────────────────────┘
#> Preview of up to 6 row(s)