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

Creating a list from a combination of vector, matrix, and data frame

A list is the natural generalization of a data frame in R. A data frame is a rectangular arrangement of rows and columns where each of the columns must be of the same length. A list can contain a variety of heterogeneous objects with various lengths and data types. An array contains only one data type, whereas a list could contain heterogeneous data types of various lengths. In that sense, a list is also a natural generalization of an array. A list is a versatile R object, and it is important to know how it stores elements and how you can access it. In this recipe, you will learn how to create a list and access its elements.

主站蜘蛛池模板: 秭归县| 平定县| 扎赉特旗| 廊坊市| 东莞市| 蓬安县| 沧源| 淅川县| 垦利县| 资源县| 施甸县| 金昌市| 沾益县| 新龙县| 云阳县| 昌宁县| 教育| 拜城县| 子长县| 龙门县| 封丘县| 遂平县| 姜堰市| 偃师市| 龙海市| 图木舒克市| 从江县| 当涂县| 鲁甸县| 鹤峰县| 中超| 乐东| 合川市| 米脂县| 九台市| 梓潼县| 基隆市| 交口县| 达拉特旗| 巫溪县| 资阳市|