Convert an object to a DataFrame

as_sedonadb_dataframe(x, ..., schema = NULL, ctx = NULL)

Arguments

x

An object to convert

...

Extra arguments passed to/from methods

schema

The requested schema

ctx

A SedonaDB context. This should always be passed to inner calls to SedonaDB functions; NULL implies the global context.

Value

A sedonadb_dataframe

Examples

as_sedonadb_dataframe(data.frame(x = 1:3))
#> <sedonab_dataframe: ?? x 1>
#> ┌───────┐
#> │   x   │
#> │ int32 │
#> ╞═══════╡
#> │     1 │
#> ├╌╌╌╌╌╌╌┤
#> │     2 │
#> ├╌╌╌╌╌╌╌┤
#> │     3 │
#> └───────┘
#> Preview of up to 6 row(s)