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

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/.
主站蜘蛛池模板: 比如县| 西林县| 朝阳县| 平陆县| 河池市| 启东市| 合川市| 军事| 林西县| 托里县| 进贤县| 富阳市| 文安县| 天津市| 新源县| 汕头市| 新竹市| 高雄县| 云龙县| 绵阳市| 专栏| 浙江省| 宕昌县| 盐源县| 咸宁市| 吕梁市| 宁乡县| 闽清县| 疏附县| 郯城县| 马龙县| 哈尔滨市| 左云县| 札达县| 康平县| 县级市| 闽侯县| 甘孜| 凌源市| 九龙城区| 平和县|