- R for Data Science Cookbook
- Yu Wei Chiu (David Chiu)
- 273字
- 2021-07-14 10:51:24
Introduction
Before using data to answer critical business questions, the most important thing is to prepare it. Data is normally archived in files, and using Excel or text editors allows it to be easily obtained. However, data can be located in a range of different sources, such as databases, websites, and various file formats. Being able to import data from these sources is crucial.
There are four main types of data. Data recorded in text format is the simplest. As some users require storing data in a structured format, files with a .tab
or .csv
extension can be used to arrange data in a fixed number of columns. For many years, Excel has had a leading role in the field of data processing, and this software uses the .xls
and .xlsx
formats. Knowing how to read and manipulate data from databases is another crucial skill. Moreover, as most data is not stored in a database, one must know how to use the web scraping technique to obtain data from the Internet. As part of this chapter, we introduce how to scrape data from the Internet using the rvest
package.
Many experienced developers have already created packages to allow beginners to obtain data more easily, and we focus on leveraging these packages to perform data extraction, transformation, and loading. In this chapter, we first learn how to utilize R packages to read data from a text format and scan files line by line. We then move to the topic of reading structured data from databases and Excel. Last, we learn how to scrape Internet and social network data by using the R web scraper.
- UNIX編程藝術
- 基于粒計算模型的圖像處理
- Google Apps Script for Beginners
- Cocos2D-X權威指南(第2版)
- 深入實踐Spring Boot
- PostgreSQL技術內幕:事務處理深度探索
- RTC程序設計:實時音視頻權威指南
- INSTANT MinGW Starter
- Flash CS6中文版應用教程(第三版)
- Cassandra Data Modeling and Analysis
- Troubleshooting PostgreSQL
- Mastering Apache Spark 2.x(Second Edition)
- Extending Puppet(Second Edition)
- Getting Started with Python
- Java 9 Programming By Example