Chapter 7 Base R Practice Problems & Quiz
10월 8일 목요일, 202AIE17 송채은
## A1 A2 A3 A4 A5 C1 C2 C3 C4 C5 E1 E2 E3 E4 E5 N1 N2 N3 N4 N5 O1 O2 O3 O4 O5 gender education age
## 61617 2 4 3 4 4 2 3 3 4 4 3 3 3 4 4 3 4 2 2 3 3 6 3 4 3 1 NA 16
## 61618 2 4 5 2 5 5 4 4 3 4 1 1 6 4 3 3 3 3 5 5 4 2 4 3 3 2 NA 18
## 61620 5 4 5 4 4 4 5 4 2 5 2 4 4 4 5 4 5 4 2 3 4 2 5 5 2 2 NA 17
## 61621 4 4 6 5 5 4 4 3 5 5 5 3 4 4 4 2 5 2 4 1 3 3 4 3 5 2 NA 17
## 61622 2 3 3 4 5 4 4 5 3 2 2 2 5 4 5 2 3 4 4 3 3 3 4 3 3 1 NA 17
## 61623 6 6 5 6 5 6 6 6 1 3 2 1 6 5 6 3 5 2 2 3 4 3 5 6 1 2 3 21
## [1] "integer"
## [1] "integer"
## [1] "integer"
## [1] "integer"
## [1] 2800
## [1] 0
## gender
## 1 2
## 919 1881
## [1] 0.6717857
## [1] 0.6717857
## [1] 0.67
dddd
## [1] 5481
## [1] 3553
## [1] 7549
여기서부터야!!
## [1] -0.07071837
## [1] 919
## [1] 18
## [[1]]
## [1] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 1 1 NA 2 NA 1 NA 2 1 NA NA 1 NA NA 2 1 2 NA 2 NA
## [43] NA 2 NA NA NA NA NA NA NA NA NA NA NA NA
##
## $na.rm
## [1] TRUE
## n
## 1 6
## n
## 1 21
## A1 A2 A3 A4 A5 C1 C2 C3 C4 C5 E1 E2 E3 E4 E5 N1 N2 N3 N4 N5 O1 O2 O3 O4 O5 gender education age
## 61617 2 4 3 4 4 2 3 3 4 4 3 3 3 4 4 3 4 2 2 3 3 6 3 4 3 1 NA 16
## 61618 2 4 5 2 5 5 4 4 3 4 1 1 6 4 3 3 3 3 5 5 4 2 4 3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