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

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/.
主站蜘蛛池模板: 江川县| 巨鹿县| 东乌珠穆沁旗| 黔西县| 中牟县| 循化| 云林县| 澄江县| 东港市| 石渠县| 静乐县| 威信县| 兰溪市| 石棉县| 额尔古纳市| 永福县| 台湾省| 寿宁县| 喜德县| 湟源县| 铁岭县| 当涂县| 浏阳市| 万盛区| 嘉义市| 武义县| 寻乌县| 武鸣县| 正阳县| 长岛县| 株洲市| 霍邱县| 铜鼓县| 石台县| 和平区| 凌源市| 精河县| 和田县| 雷波县| 三门县| 繁昌县|