Skip to contents

Embeds 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.

Usage

sus_as_arrow(df)

Arguments

df

A climasus_df tibble (output of any sus_data_* function).

Value

An Arrow Table with sus_meta embedded in the schema.

Examples

if (FALSE) { # \dontrun{
arrow_df <- sus_data_standardize(df) |> sus_as_arrow()
result   <- sus_data_aggregate(arrow_df, time_unit = "month")
} # }