dataframe_to_text {gptr}R 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)


[Package gptr version 0.6.0 Index]