- Applied Data Visualization with R and ggplot2
- Dr. Tania Moulik
- 168字
- 2021-07-23 16:59:44
Exploring Datasets
In this section, we will use the built-in datasets to investigate the relationships between continuous variables, such as temperature and airquality. We'll explore and understand the datasets available in R.
Let's begin by executing the following steps:
- Type data() in the command line to list the datasets available in R. You should see something like the following:
- Choose the following datasets: mtcars, air quality, rock, and sleep.
The number of levels only applies to factor data.
- List two variables of each type, the dataset names, and the other columns of this table.
- To view the data type, use the str command (for example, str(airquality) ).
Take a look at the following output screenshot:
- After viewing the preceding datasets, fill in the following table. The first entry has been completed for you. The following table includes all variables of the types num and int:
The outcome should be a completed table, similar to the following:
More details about variables can be found at http://www.statisticshowto.com/types-variables/.
推薦閱讀
- JavaScript實(shí)例自學(xué)手冊
- Deep Learning Quick Reference
- TIBCO Spotfire:A Comprehensive Primer(Second Edition)
- Hands-On Data Science with SQL Server 2017
- Windows XP中文版應(yīng)用基礎(chǔ)
- ROS機(jī)器人編程與SLAM算法解析指南
- 工業(yè)機(jī)器人安裝與調(diào)試
- 悟透JavaScript
- 啊哈C!思考快你一步
- Xilinx FPGA高級設(shè)計及應(yīng)用
- 計算智能算法及其生產(chǎn)調(diào)度應(yīng)用
- 機(jī)器人剛?cè)狁詈蟿恿W(xué)
- 教育創(chuàng)新與創(chuàng)新人才:信息技術(shù)人才培養(yǎng)改革之路(四)
- 百度智能小程序:AI賦能新機(jī)遇
- SQL語言與數(shù)據(jù)庫操作技術(shù)大全