mdtbl2df: Convert markdown table to data.frame

Description Usage Arguments Examples

View source: R/mdtable2df.R

Description

Convert markdown table to data.frame

Usage

1
mdtbl2df(string)

Arguments

string

text

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
md_table <- c(
"|hoge|hage|",
"|:-:|--:|",
"|1.0|a|",
"|2|abc|"
)
mdtbl2df(md_table)

## Not run: 
|hoge|hage|hige|
|:-:|--:|:-:|
|1.0|a  |1L|
|2| abc |foo|

clipr::read_clip() %>%
  mdtbl2df() %>%
  knitr::kable(align = "lrc") %>%
  clipr::write_clip()

## End(Not run)

t-arae/prtclmisc documentation built on Aug. 28, 2020, 7:50 p.m.