Learn R Programming

gptr (version 0.7.0)

dataframe_to_text: 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)

Value

A character vector representing the dataframe in text format.

Arguments

dataframe

A dataframe to be converted.

Examples

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

Run the code above in your browser using DataLab