官术网_书友最值得收藏!

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:

  1. Type data() in the command line to list the datasets available in R. You should see something like the following:

  1. Choose the following datasets: mtcars, air quality, rock, and sleep.

The number of levels only applies to factor data.
  1. List two variables of each type, the dataset names, and the other columns of this table.
  2. To view the data type, use the str command (for example, str(airquality) ).

    Take a look at the following output screenshot:

  1. 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/.
主站蜘蛛池模板: 卓资县| 古丈县| 临颍县| 衡南县| 榆林市| 台东县| 贺兰县| 镇赉县| 华池县| 重庆市| 和平区| 双江| 延庆县| 洛浦县| 双峰县| 富民县| 鹰潭市| 宁明县| 玉龙| 原平市| 德保县| 策勒县| 依安县| 凤凰县| 巩义市| 天峨县| 鹤庆县| 商南县| 白河县| 泾川县| 潢川县| 涡阳县| 南平市| 梁山县| 吴川市| 金溪县| 莱州市| 集贤县| 玛纳斯县| 玉田县| 侯马市|