a<-c(1,2,3)
a
## [1] 1 2 3
mean(a)
## [1] 2
max(a)
## [1] 3
min(a)
## [1] 1
x<-c(1,2,3)
mode(x)
## [1] "numeric"
is.numeric(x)
## [1] TRUE
is.logical(x)
## [1] FALSE
is.character(x)
## [1] FALSE
length(x)
## [1] 3
x<-c(1,10)
y<-c("apple","melon")
xy<-c(x,y)
xy
## [1] "1"     "10"    "apple" "melon"
is.numeric(xy)
## [1] FALSE
is.character(xy)
## [1] TRUE
is.numeric(x)
## [1] TRUE
1:5
## [1] 1 2 3 4 5
n<-1:5

gender<-c("male","female","male")
bloodtype<-c("AB","O","B")
height<-c(170,175,165)
weight<-c(70,65,55)
df<-data.frame(gender,bloodtype,height,weight)
df
##   gender bloodtype height weight
## 1   male        AB    170     70
## 2 female         O    175     65
## 3   male         B    165     55
car<-c("kia","bmw","toyota")
df2<-data.frame(df,car)
df2
##   gender bloodtype height weight    car
## 1   male        AB    170     70    kia
## 2 female         O    175     65    bmw
## 3   male         B    165     55 toyota
#remarkdown할때는 install.packages 지워서내기