Learn R Programming

rtiddlywiki (version 0.5.2)

read_table: Read a TiddlyWiki Table into a Data Frame

Description

This function parses a table written in TiddlyWiki format and converts it into an R data frame. It can optionally treat the first row as a header.

Usage

read_table(table, header = TRUE)

Value

A data frame containing the parsed table data.

Arguments

table

A character string representing the TiddlyWiki table.

header

A logical value indicating whether the first row should be treated as column headers. Default is TRUE.

Examples

Run this code
table <- "|!Cell1 |!Cell2 |\n|Cell3 |Cell4 |"
df <- read_table(table, header = TRUE)
print(df)

Run the code above in your browser using DataLab