-
Notifications
You must be signed in to change notification settings - Fork 0
/
01-intro.Rmd
55 lines (44 loc) · 846 Bytes
/
01-intro.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Introduction to R
## Installing R and RStudio
Install R base package: http://www.r-project.org/
Install RStudio: http://www.rstudio.com/
## Getting familiar with the interface
Consists of 4 tabs:
1. Source
2. Console
3. Environment & History
4. Misc. Most important Plots, Packages & Help
## Basic tasks in R
### R Script
Text here.
### Setting working directory
Text here.
### Packages
Text here.
#### Installation
```{r eval=FALSE}
install.packages("package.name")
```
#### Loading
```{r eval=FALSE}
library("package.name")
```
### Data management
Text here.
#### Loading data
```{r eval=FALSE}
read.csv("file.name")
```
For SPSS file, need `foreign` package
```{r eval=FALSE}
library("foreign")
read.spss("file.name")
```
#### Data dimension
```{r eval=FALSE}
dim(data)
```
#### Entering data
text here
#### Editing data
text here