第 2 章 数据结构

网站 https://r-coder.com/ 主要介绍 Base R,特点是全面细致,排版精美

可用于绘图的数据对象,向量 vector 等,只涉及基础操作和绘图,关键在入门引导式的介绍,点到即止

数据类型:字符、数值:字符数据操作:按数据类型介绍各类数据操作,重复之处如前所述,数据处理的分类:按数据类型来,一共是 table matrix data.frame 和 vector

The trouble with nonstandard evaluation is that it doesn’t follow standard evaluation rules…

— Peter Dalgaard (about nonstandard evaluation in the curve() function) R-help (June 2011)

向量,列表,

数据框 data frame 在 R 里面可以用三种不同类型的数据对象来表达

从历史脉络来看,为什么会出现三种不同的东西,它们之间的区别和联系是什么,能否用一张表来描述

data.frame 设计的历史,首次包含在 R 里面是什么时候,R 是否一发布就包含了这个数据类型

The function data.frame() creates data frames, tightly coupled collections of variables which share many of the properties of matrices and of lists, used as the fundamental data structure by most of R’s modeling software.

data.table 2006 年 4 月 15 日首次登陆 CRAN 发布 1.0 版本,差不多恰好 10 年后

tibble 在 2016 年 3 月 23 日首次登陆 CRAN 发布 1.0 版本

data.frame()tibble()data.table() 的区别,去看函数的帮助文档

Provides a ‘tbl_df’ class (the ‘tibble’) that provides stricter checking and better formatting than the traditional data frame.

vctrsrlang 包 R 内置的 R Language Definition