| presto_type | R Documentation |
Returns column type information for a tbl_presto object, including
Presto types for complex and nested types.
presto_type(data, ...)
## S3 method for class 'tbl_presto'
presto_type(data, ...)
data |
A |
... |
Additional arguments (currently unused) |
A data frame with columns:
name: Column name (character)
type: R type (character)
.presto_type: Presto type as string (character)
## Not run:
# Connect to Presto
con <- DBI::dbConnect(RPresto::Presto(), ...)
# Get column types for a table
tbl(con, "my_table") %>%
presto_type()
# Get column types for a query
tbl(con, "my_table") %>%
dplyr::filter(id > 100) %>%
presto_type()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.