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

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.

主站蜘蛛池模板: 舞阳县| 锡林郭勒盟| 古田县| 资溪县| 五大连池市| 乌兰察布市| 博野县| 惠来县| 遂平县| 抚远县| 宝兴县| 阜城县| 天峨县| 兴和县| 建始县| 泾源县| 响水县| 罗平县| 石河子市| 东阿县| 阜宁县| 鱼台县| 亳州市| 沙坪坝区| 乌鲁木齐市| 肇东市| 商河县| 抚远县| 屏东市| 乌苏市| 沙雅县| 定西市| 犍为县| 泸州市| 随州市| 松江区| 富蕴县| 卢湾区| 家居| 且末县| 金沙县|