Convert a climasus_df to an Arrow Table with embedded metadata
Source:R/sus_data_aggregate.R
sus_as_arrow.RdEmbeds sus_meta as a JSON string in the Arrow schema metadata field
"sus_meta". This ensures the metadata survives all downstream dplyr
verbs (filter, mutate, group_by, etc.) because Arrow schema metadata
travels with the data.
Examples
if (FALSE) { # \dontrun{
arrow_df <- sus_data_standardize(df) |> sus_as_arrow()
result <- sus_data_aggregate(arrow_df, time_unit = "month")
} # }