dataframe_to_text: Convert data.frams to text interpretable by ChatGPT

View source: R/dataframe_to_text.R

dataframe_to_textR Documentation

Convert data.frams to text interpretable by ChatGPT

Description

This function takes a dataframe as input and converts it to a text representation.

Usage

dataframe_to_text(dataframe)

Arguments

dataframe

A dataframe to be converted.

Value

A character vector representing the dataframe in text format.

Examples

dataframe <- data.frame(
  Name = c("John", "Alice", "Bob"),
  Age = c(25, 30, 22),
  Score = c(95, 88, 75)
)
dataframe_to_text(dataframe)


gptr documentation built on May 29, 2024, 7:44 a.m.