Introduction to R
Preface
Structure of the book
Software information
About the Author
1
Introduction to R
1.1
Overview
1.2
Organizations
1.2.1
R Foundation
1.2.2
R Consortium
1.3
Installation
1.3.1
CRAN
1.3.2
Extensions
1.4
GUI
1.4.1
R GUI
1.4.2
RStudio
2
Install R & RStudio
2.1
R
2.2
RStudio
3
Variables in R
3.1
Introduction
3.2
What is a variable?
3.3
Creating Variables
3.4
Using Variables
3.5
Components of a Variable
3.6
Naming Conventions
4
Data Types in R
4.1
Introduction
4.2
Numeric
4.3
Integer
4.4
Character
4.5
Logical
5
Getting Help in R
5.1
Introduction
5.2
Online Resources
5.2.1
R Bloggers
5.2.2
Stack Overflow
5.2.3
Twitter
5.2.4
RStudio Community
5.2.5
RStudio
5.2.6
Reddit
5.2.7
R Weekly
5.2.8
R User Groups
5.2.9
Data Helpers
5.3
Internal
5.3.1
help.start
5.3.2
help
5.3.3
help.search
5.3.4
demo
5.3.5
example
5.4
Package Documentation
5.4.1
library
5.4.2
vignette
5.4.3
browseVignettes
5.4.4
RsiteSearch
6
Vectors in R
6.1
Introduction
6.2
Numeric Vector
6.3
Integer Vector
6.4
Character Vector
6.5
Logical Vector
6.6
Naming Vector Elements
6.6.1
Method 1: Create vector and add names later
6.6.2
Method 2: Specify names while creating vector
6.7
Vector Coercion
6.7.1
Case 1: Different Data Types
6.7.2
Case 2: Numeric, Integer and Logical
6.7.3
Case : Integer and Logical
6.8
Vector Operations
6.8.1
Case 1: Vectors of same length
6.8.2
Case 2: Vectors of different length
6.9
Missing Data
6.9.1
Detect missing data
6.9.2
Omit missing data
6.9.3
Exclude missing data
6.10
Index Vectors
6.10.1
Out of range index
6.10.2
Negative Index
6.10.3
Subset Multiple Elements
6.10.4
Subset Named Vectors
6.10.5
Subset using logical values
6.10.6
Subset using logical expressions
6.10.7
Logical Operators
7
Dataframes in R
7.1
Introduction
7.2
Create dataframes
7.3
Basic Information
7.4
Select Columns
7.4.1
Single Column
7.4.2
Multiple Columns
7.5
Select Rows
8
Factors in R
8.1
Introduction
8.2
Create Factors
9
Lists in R
9.1
Introduction
9.2
Creating Lists
9.3
Access List Elements
9.4
Coerce other objects
9.5
Coerce list to other objects
10
Install & Update R Packages
10.1
Introduction
10.2
Install Packages
10.2.1
CRAN
10.2.2
GitHub
10.2.3
BitBucket
10.2.4
Bioconductor
10.2.5
rForge
10.3
Install Different Versions
10.4
Installed Packages
10.5
Library Paths
10.5.1
Install
10.5.2
Load
10.5.3
Update Packages
10.5.4
Remove Packages
Published with bookdown
Introduction to R
Chapter 2
Install R & RStudio
2.1
R
2.2
RStudio