book_json <- fromJSON('book.json', simplifyDataFrame = TRUE)
book_json
## $books
## category
## 1 Textbook
## 2 Textbook
## 3 Textbook
## title
## 1 Practical Statistics for Data Scientists: 50 Essential Concepts
## 2 R for Data Science: Import, Tidy, Transform, Visualize, and Model Data
## 3 R Cookbook: Proven Recipes for Data Analysis, Statistics, and Graphics (O'reilly Cookbooks)
## authors isbn13 pageCount
## 1 Peter Bruce;Andrew Bruce 978-1118834817 474
## 2 Silge,Julia; Robinson,David 978-1491981658 194
## 3 Wickham,Hadley; Grolemund,Garrett 978-1491910399 522
## publisher edition
## 1 Wiley 1
## 2 O'reilly Media 1
## 3 O'reilly Media 1
book_html <- readHTMLTable('book.html')
book_html
## $`NULL`
## Category
## 1 Textbook
## 2 Textbook
## 3 Textbook
## Title
## 1 Practical Statistics for Data Scientists: 50 Essential Concepts
## 2 R for Data Science: Import, Tidy, Transform, Visualize, and Model Data
## 3 R Cookbook: Proven Recipes for Data Analysis, Statistics, and Graphics (O'reilly Cookbooks)
## Authors ISBN-13 Page Count
## 1 Peter Bruce;Andrew Bruce 978-1118834817 474
## 2 Silge,Julia; Robinson,David 978-1491981658 194
## 3 Wickham,Hadley; Grolemund,Garrett 978-1491910399 522
## Publisher Edition
## 1 Wiley 1
## 2 O'reilly Media 1
## 3 O'reilly Media 1
book_xml <- xmlToDataFrame('book.xml')
book_xml
## category
## 1 Textbook
## 2 Textbook
## 3 Textbook
## title
## 1 Practical Statistics for Data Scientists: 50 Essential Concepts
## 2 R for Data Science: Import, Tidy, Transform, Visualize, and Model Data
## 3 R Cookbook: Proven Recipes for Data Analysis, Statistics, and Graphics (O'reilly Cookbooks)
## authors isbn_13 page_count
## 1 Peter Bruce;Andrew Bruce 978-1118834817 474
## 2 Silge,Julia; Robinson,David 978-1491981658 194
## 3 Wickham,Hadley; Grolemund,Garrett 978-1491910399 522
## publisher edition
## 1 Wiley 1
## 2 O'reilly Media 1
## 3 O'reilly Media 1
The three dataframe are identical.