R语言基础与数据框操作.pdfVIP

  • 0
  • 0
  • 约2.01万字
  • 约 22页
  • 2026-10-30 发布于北京
  • 举报

R语言基础

数据框

Steven

Buechler

数学系

276B

Hurley

Hall;:1‑6233

2007

年秋季

表格数据

实验数据通常在表格中,例如Excel工作表。自然地,R拥有非常强大的结构来保存

表格数据,包括导入电子表格和保存为CSV文件。

大纲

数据的对象

矩阵和数组

数据框:读写表格、选择和排

序数据框

矩阵

一个数字的方阵

矩阵X中的元素按行和列排列。可以将其视为数字向量的二维版本。如果一个矩阵有n行

和m列,则表示为n

×m。创建一个所有元素均为0的3×4矩阵:

RLanguageFundamentals

DataFrames

StevenBuechler

DepartmentofMathematics276BHurleyHall;1-6233

Fall,2007

TabularData

Frequently,experimentaldataareheldintab,anExcelworksheet,forexample.Naturally,R

hasveryrobuststructuresforholdingtabulardata,including

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档