df_to_msg: Create a message from a data frame

View source: R/utilities.R

df_to_msgR Documentation

Create a message from a data frame

Description

This function is especially helpful for cases when a data frame of missing or unset values is at hand. Trim unneeded columns, then call this function to create a string with rows separated by semicolons and entries separated by commas.

Usage

df_to_msg(df)

Arguments

df

The data frame to be converted to a message

Value

A string with rows separated by semicolons and entries separated by commas.

Examples

data.frame(a = c(1, 2, 3), b = c("a", "b", "c")) |>
  df_to_msg()

matsindf documentation built on July 4, 2024, 1:11 a.m.