1
Acknowledgement
2
R Programming
2.1
General Information
2.1.1
Cleaning the environment
2.1.2
Installing a package
2.1.3
Browsing help on packages
2.1.4
Directories
2.1.5
List specific files
2.1.6
Working Directory
2.1.7
Create a new file
2.1.8
Show file info
2.1.9
Listing files in a directory
2.1.10
renaming a file
2.1.11
copy a file from and to
2.1.12
file path
2.1.13
Show arguments of a function
2.1.14
this needs more context and examples
2.2
Create Data
2.2.1
Create sequence of numbers
2.2.2
short cuts
2.2.3
%in% statement
2.2.4
which()
function
2.2.5
Where is the min, max, first true/false?
2.2.6
match(a, b)
function
2.3
Create a Data Frame
3
Logic statements
4
be careful
4.1
matrices and data frames
5
Vectors contain one class of data
6
Convert vector to a Matrix
7
Creating a Matrix
8
Create a character vector
9
column bind
10
R recycles if columns are not equal
11
Create and ; variable names
12
assign column names
13
reorder the variable names
14
Reordering columns
15
Adding a new column
16
operators
17
Categorical variables
18
Logical Values
19
Integer Value
20
Character Values
21
Basics
R Notebook
Chapter 11
Create and ; variable names
cnames
<-
c
(
"patient"
,
"age"
,
"weight"
,
"bp"
,
"rating"
,
"test"
)