Skip to Content
高效R语言编程
book

高效R语言编程

by Colin Gillespie, Robin Lovelace
August 2018
Intermediate to advanced
227 pages
4h 16m
Chinese
China Electric Power Press Ltd.
Content preview from 高效R语言编程
高效安装
43
RStudio
中,一方面
Linux
Windows
版本下的快捷键有所不同,另一
方面
Mac
版本下的快捷键也不相同。为了简单,我们通常只使用
Windows/
Linux
版本的快捷键。
Mac
版本下相应的快捷键,可通过用
Mac
特有的
Cmd
按钮替换
Ctrl
Alt
得到。
窗口面板布局
RStudio
4
个主要的窗口面板,如图
2-2
所示,每一个面板提供相应的功能。
源程序窗口面板
左上角的窗口面板,用于编辑、保存和发送
R
代码到命令窗口面板。请注意,
当你启动
RStudio
时,默认情况下,该窗口面板不显示,当你打开一个
R
脚本文件(例如执行“
File
”→
New File
”→“
R Script
”)时,该窗口
面板才显示。该窗口面板的常用功能是利用
Ctrl/Cmd-Enter
将当前行的代
码发送到命令窗口面板。
命令窗口面板
R
将逐行执行该窗口面板输入的命令。在源程序窗口面板保存最终代码之
前,先在命令窗口面板中进行交互测试是理想的选择。
环境窗口面板(右上)
包含工作空间当前加载的对象的相关信息,包括对象的类、维度(如果对
象是数据框)和名字。该窗口面板还包括 HistoryBuild Git 选项卡,
History
选项卡下可搜索发送到命令窗口面板的历史代码。
文件窗口面板(右下)
包含一个简单的文件浏览器、一个
Plots
选项卡、
Help
Package
选项
卡和一个可视化的、交互式的
R
输出结果(
例如
leaflet
HTML widget
包生成的)的“
Viewer
”选项卡。
44
2
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

数据科学之编程技术:使用R进行数据清理、分析与可视化

数据科学之编程技术:使用R进行数据清理、分析与可视化

迈克尔 弗里曼, 乔尔 罗斯
R数据科学

R数据科学

Hadley Wickham, Garrett Grolemund

Publisher Resources

ISBN: 9787519820855