-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathday1.Rpres
87 lines (60 loc) · 1.47 KB
/
day1.Rpres
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
R&MaxEnt seminer in Kazakh
========================================================
author: kanji
date: 5/28
autosize: false
Self Introduction
========================================================
- PhD student at RakunoGakuenUniv.
- Landscape Ecology using GIS,RS
- Data analysis with R
Install Software
========================================================
install these software newest version.
- R 3.40
- Rstudio 1.0.143
- MaxEnt *depends
Using R with Rstudio is most powerful for data analysis!
First Step in R language
========================================================
called as 'object', what stroes 'variable' and 'function' in R
R codes shows in this box. plz type in console
```{r}
100 * 100 - 100 / 100
test <- 100
test * 10
```
========================================================
assign object :arrow(->,<-), equal(=), assign()
below codes means same!
```{r}
test2 <- 100
test2 = 100
100 -> test2
assign("test2",100)
```
========================================================
atomic class
```{r}
num <- 100
class(num)
cha <- "string or charactor"
class(cha)
```
========================================================
logical
```{r}
true_boolen <- TRUE
false_boolen <- FALSE
class(true_boolen)
```
========================================================
function
```{r}
(seq(1,10) -> a) # assign and print
head(a) # print 1:6 from head
tail(a) # print 1:6 from tail
```
========================================================
```{r}
```