Closed yutannihilation closed 3 years ago
Fix #311
I chose convert as the argument name because it's used some of tidyr's functions.
convert
library(tibble) d <- tibble(code = c("001", "002", "101", "102"), label = c("apple", "banana", "lemon", "orange")) devtools::load_all("~/repo/rvest/") #> Loading rvest table_html <- knitr::kable(d, format = "html") table_html <- as.character(table_html) h <- table_html %>% read_html() html_table(h) #> [[1]] #> # A tibble: 4 x 2 #> code label #> <int> <chr> #> 1 1 apple #> 2 2 banana #> 3 101 lemon #> 4 102 orange html_table(h, convert = FALSE) #> [[1]] #> # A tibble: 4 x 2 #> code label #> <chr> <chr> #> 1 001 apple #> 2 002 banana #> 3 101 lemon #> 4 102 orange
Created on 2021-02-06 by the reprex package (v1.0.0)
Perfect, thanks!
Thanks for reviewing!
Fix #311
I chose
convert
as the argument name because it's used some of tidyr's functions.Created on 2021-02-06 by the reprex package (v1.0.0)