Convert a climasus_df to a DuckDB lazy tbl with embedded metadata
Source:R/sus_data_aggregate.R
sus_as_duckdb.RdCopies the data to a DuckDB connection and stores sus_meta in a helper
table named .__sus_meta__. This allows sus_data_aggregate() to
recover the metadata automatically.
Examples
if (FALSE) { # \dontrun{
con <- duckdb::dbConnect(duckdb::duckdb())
duck_tbl <- sus_data_standardize(df) |> sus_as_duckdb(con)
result <- sus_data_aggregate(duck_tbl, time_unit = "month")
} # }