Encode a Data Frame as a Base64 String This function encodes a data frame into a Base64 string representation. The data frame is first converted to JSON format, and then the JSON string is encoded to Base64.

encode_sheet(x)

Arguments

x

A data frame to be encoded.

Value

A Base64 encoded string representing the data frame in JSON format.

Examples

df <- data.frame(a = 1:3, b = letters[1:3])
encoded_df <- encode_sheet(df)
#> [{"a":1,"b":"a"},{"a":2,"b":"b"},{"a":3,"b":"c"}]