Getting Started with RStudio.pdf
目录
1. Overview, Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
What is R? 1
What is an IDE? 2
Why RStudio? 3
Using RStudio 4
Desktop Version 4
Server Version 5
Which Workspace? 7
Projects 7
Which R? 7
Layout of the Components 8
Keyboard Shortcuts 8
The Options Dialog 9
Installing RStudio 9
Updating RStudio 11
2. Case Study: Data Cleaning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Using Projects 14
Reading in a Data File 14
Tab Key Completion 16
Workspace Component 18
Using the Right Class to Store Data 19
Data Cleaning 20
Using the Code Editor to Write R Scripts 21
Using Add-On Packages 22
Graphics 23
Command History 24
All Finished, for Now 25
iii
3. The Console and Related Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Entering Commands 27
Automatic Insertion of Matching Pairs 29
R Script Files 29
Command-Line Conveniences 31
Tab Completion 31
Keyboard Shortcuts 34
Command History 36
Workspace Browser 38
Editing and Viewing Objects 39
Importing Data Sets 41
The Help Page Viewer 42
The Browser 45
The Plots Browser 46
Interactivity 48
The manipulate Package for RStudio 48
External Programs (Desktop Version) 50
4. Case Study: Creating a Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Creating Functions from Script Files 52
A Package Skeleton 52
Documenting Functions with roxygen2 56
The devtools Package 57
Package Data 59
Package Examples 60
Adding Tests 60
Building and Installing the Package 60
5. Programming R with RStudio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Source Code Editor 63
Basics 64
R Programming Features 67
Navigation 70
The File Browser 71
Debugging R Code in RStudio 72
Package Maintenance 73
Case Study: Report Generation 75
下载:
Getting Started with RStudio.rar
(6.54 MB, 下载次数: 10, 售价: 5 )
备注:
很多人都有收集一堆资料而不看的习惯。为了有效利用资源,养成下载一本看一本的习惯,特设置了积分下载,请见谅。
多参加论坛的活动、多帮助别人,会很容易凑够积分的!
祝大家使用愉快!
|