# 07월 18일
rm(list=ls()) #1 - 이때까지 저장된거 지우기
library(dplyr) #2 
## 
## 다음의 패키지를 부착합니다: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
library(psych)
library(ggplot2)
## 
## 다음의 패키지를 부착합니다: 'ggplot2'
## The following objects are masked from 'package:psych':
## 
##     %+%, alpha
library(lattice)
library(caret)
library(tidyverse)
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ forcats   1.0.0     ✔ stringr   1.5.0
## ✔ lubridate 1.9.2     ✔ tibble    3.2.1
## ✔ purrr     1.0.1     ✔ tidyr     1.3.0
## ✔ readr     2.1.4
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ ggplot2::%+%()   masks psych::%+%()
## ✖ ggplot2::alpha() masks psych::alpha()
## ✖ dplyr::filter()  masks stats::filter()
## ✖ dplyr::lag()     masks stats::lag()
## ✖ purrr::lift()    masks caret::lift()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(hflights)
library(plyr)
## ------------------------------------------------------------------------------
## You have loaded plyr after dplyr - this is likely to cause problems.
## If you need functions from both plyr and dplyr, please load plyr first, then dplyr:
## library(plyr); library(dplyr)
## ------------------------------------------------------------------------------
## 
## 다음의 패키지를 부착합니다: 'plyr'
## 
## The following object is masked from 'package:purrr':
## 
##     compact
## 
## The following objects are masked from 'package:dplyr':
## 
##     arrange, count, desc, failwith, id, mutate, rename, summarise,
##     summarize
setwd("C:/data")
getwd()
## [1] "C:/data"
#이론 실습
c(1,2,3)+2
## [1] 3 4 5
c(1,2,3) + c(4,5,6)
## [1] 5 7 9
c(1,2)+c(3,4,5,6)
## [1] 4 6 6 8
#c(1,2,3)+c(4,5,6,7) 경고멧ㅔ지 나옴!

set.seed(1)
sample(1:45,6)#로또 번호 무작위 추출
## [1]  4 39  1 34 23 14
m<-matrix(1:6,nrow = 3)
m[m[,1]>1&m[,2]>5,]
## [1] 3 6
rep(1,3)
## [1] 1 1 1
a<-1:10
b<-log(a)
IQR(a)
## [1] 4.5
range(a)
## [1]  1 10
describe(a)
##    vars  n mean   sd median trimmed  mad min max range skew kurtosis   se
## X1    1 10  5.5 3.03    5.5     5.5 3.71   1  10     9    0    -1.56 0.96
quantile(a)
##    0%   25%   50%   75%  100% 
##  1.00  3.25  5.50  7.75 10.00
log(a)
##  [1] 0.0000000 0.6931472 1.0986123 1.3862944 1.6094379 1.7917595 1.9459101
##  [8] 2.0794415 2.1972246 2.3025851
cov(a,b)
## [1] 2.112062
cor(a,b)
## [1] 0.9516624
summary(a)
##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
##    1.00    3.25    5.50    5.50    7.75   10.00
b<-c('a','b','c')
b
## [1] "a" "b" "c"
b[2]
## [1] "b"
b[-3]
## [1] "a" "b"
b[c(1,2)]
## [1] "a" "b"
a<-c()
for(i in 1:9)
{a[i]=i*i
}
a
## [1]  1  4  9 16 25 36 49 64 81
x=1
while(x<5){
  x=x+1
  print(x)
}
## [1] 2
## [1] 3
## [1] 4
## [1] 5
gender<-c("m","f","m","f","m")
gender<-ifelse(gender=="f",0,1)
gender
## [1] 1 0 1 0 1
number<-1:5
alphabet<-c('a','b','c')
paste(number,alphabet)
## [1] "1 a" "2 b" "3 c" "4 a" "5 b"
paste(number,alphabet,sep=" to the ")
## [1] "1 to the a" "2 to the b" "3 to the c" "4 to the a" "5 to the b"
country<-c('korea','Japan')
substr(country,1,2)
## [1] "ko" "Ja"
as.data.frame(x)
##   x
## 1 5
as.list(x)
## [[1]]
## [1] 5
as.vector(x)
## [1] 5
as.factor(x)
## [1] 5
## Levels: 5
as.matrix(x)
##      [,1]
## [1,]    5
as.integer(3.14)
## [1] 3
as.numeric('foo')
## Warning: 강제형변환에 의해 생성된 NA 입니다
## [1] NA
as.numeric(FALSE)
## [1] 0
as.logical(0.45)
## [1] TRUE
as.Date("2018-01-13")
## [1] "2018-01-13"
height<-c(170,168,174,175,188,165,165,190,173,168,159,170,184,155,165)
weight<-c(68,65,74,77,92,63,67,95,72,69,60,69,73,56,55)
plot(height,weight)

pairs(iris[1:4], main="Anderson's Iris Data --3 specis",
      pch=21, bg = c('red','green3','blue')[unclass(iris$Species)])

height<-c(182,160,170,163,160,181,166,159,145,175)
hist(height)

summary(height)
##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
##   145.0   160.0   164.5   166.1   173.8   182.0
par(mfrow=c(2,2))
boxplot(iris$Petal.Length~iris$Species,data = iris)
boxplot(iris$Sepal.Length~iris$Species,data = iris)
boxplot(iris$Sepal.Width~iris$Species,data = iris)
boxplot(iris$Petal.Width~iris$Species,data = iris)

featurePlot(x=iris[, 1:4],
            y=iris$Species,
            plot = "density",
            scales=list(x=list(relation="free"),
                        y=list(relation="free")),
            adjust=1.5,
            pch = "1",
            layout = c(4,1),
            auto.key=list(colums=3))

par(mfrow=c(1,1))
data('Titanic')
glimpse(Titanic)
##  'table' num [1:4, 1:2, 1:2, 1:2] 0 0 35 0 0 0 17 0 118 154 ...
##  - attr(*, "dimnames")=List of 4
##   ..$ Class   : chr [1:4] "1st" "2nd" "3rd" "Crew"
##   ..$ Sex     : chr [1:2] "Male" "Female"
##   ..$ Age     : chr [1:2] "Child" "Adult"
##   ..$ Survived: chr [1:2] "No" "Yes"
mosaicplot(Titanic,
           main='Survial on the Titanic',
           color = c('red','green'),
           off=1)

library(reshape2)
## 
## 다음의 패키지를 부착합니다: 'reshape2'
## The following object is masked from 'package:tidyr':
## 
##     smiths
data("airquality")
colnames(airquality)
## [1] "Ozone"   "Solar.R" "Wind"    "Temp"    "Month"   "Day"
colnames(airquality)<-tolower(colnames(airquality))
head(airquality)
##   ozone solar.r wind temp month day
## 1    41     190  7.4   67     5   1
## 2    36     118  8.0   72     5   2
## 3    12     149 12.6   74     5   3
## 4    18     313 11.5   62     5   4
## 5    NA      NA 14.3   56     5   5
## 6    28      NA 14.9   66     5   6
head(airquality,3)
##   ozone solar.r wind temp month day
## 1    41     190  7.4   67     5   1
## 2    36     118  8.0   72     5   2
## 3    12     149 12.6   74     5   3
getwd()
## [1] "C:/data"
df <- read.csv('disease.csv')
df
##   year Afghanistan Albania Algeria Andorra Angola Antigua...Barbuda Argentina
## 1 1999           0    89.0    25.0   245.0  217.0             102.0     193.0
## 2 2000           0   132.0     0.0   138.0   57.0             128.0      25.0
## 3 2001           0    54.0    14.0   312.0   45.0              45.0     221.0
## 4 2002           0     4.9     0.7    12.4    5.9               4.9       8.3
##   Armenia Australia Austria Azerbaijan Bahamas Bahrain Bangladesh Barbados
## 1    21.0     261.0   279.0       21.0   122.0      42          0    143.0
## 2   179.0      72.0    75.0       46.0   176.0      63          0    173.0
## 3    11.0     212.0   191.0        5.0    51.0       7          0     36.0
## 4     3.8      10.4     9.7        1.3     6.3       2          0      6.3
##   Belarus Belgium Belize Benin Bhutan Bolivia Bosnia.Herzegovina Botswana
## 1   142.0   295.0  263.0  34.0   23.0   167.0               76.0    173.0
## 2   373.0    84.0  114.0   4.0    0.0    41.0              173.0     35.0
## 3    42.0   212.0    8.0  13.0    0.0     8.0                8.0     35.0
## 4    14.4    10.5    6.8   1.1    0.4     3.8                4.6      5.4
##   Brazil Brunei Bulgaria Burkina.Faso Burundi Cote.d.Ivoire Cabo.Verde Cambodia
## 1  245.0   31.0    231.0         25.0    88.0            37        144     57.0
## 2  145.0    2.0    252.0          7.0     0.0             1         56     65.0
## 3   16.0    1.0     94.0          7.0     0.0             7         16      1.0
## 4    7.2    0.6     10.3          4.3     6.3             4          4      2.2
##   Cameroon Canada Central.African.Republic Chad Chile China Colombia Comoros
## 1    147.0  240.0                     17.0 15.0 130.0    79    159.0     1.0
## 2      1.0  122.0                      2.0  1.0 124.0   192     76.0     3.0
## 3      4.0  100.0                      1.0  1.0 172.0     8      3.0     1.0
## 4      5.8    8.2                      1.8  0.4   7.6     5      4.2     0.1
##   Congo Cook.Islands Costa.Rica Croatia  Cuba Cyprus Czech.Republic North.Korea
## 1  76.0          0.0      149.0   230.0  93.0  192.0          361.0           0
## 2   1.0        254.0       87.0    87.0 137.0  154.0          170.0           0
## 3   9.0         74.0       11.0   254.0   5.0  113.0          134.0           0
## 4   1.7          5.9        4.4    10.2   4.2    8.2           11.8           0
##   DR.Congo Denmark Djibouti Dominica Dominican.Republic Ecuador Egypt
## 1     32.0   224.0     15.0     52.0              193.0   162.0   6.0
## 2      3.0    81.0     44.0    286.0              147.0    74.0   4.0
## 3      1.0   278.0      3.0     26.0                9.0     3.0   1.0
## 4      2.3    10.4      1.1      6.6                6.2     4.2   0.2
##   El.Salvador Equatorial.Guinea Eritrea Estonia Ethiopia Fiji Finland France
## 1        52.0              92.0    18.0   224.0     20.0   77     263  127.0
## 2        69.0               0.0     0.0   194.0      3.0   35     133  151.0
## 3         2.0             233.0     0.0    59.0      0.0    1      97  370.0
## 4         2.2               5.8     0.5     9.5      0.7    2      10   11.8
##   Gabon Gambia Georgia Germany Ghana Greece Grenada Guatemala Guinea
## 1 347.0    8.0    52.0   346.0  31.0  133.0   199.0      53.0    9.0
## 2  98.0    0.0   100.0   117.0   3.0  112.0   438.0      69.0    0.0
## 3  59.0    1.0   149.0   175.0  10.0  218.0    28.0       2.0    2.0
## 4   8.9    2.4     5.4    11.3   1.8    8.3    11.9       2.2    0.2
##   Guinea.Bissau Guyana Haiti Honduras Hungary Iceland India Indonesia Iran Iraq
## 1          28.0   93.0   1.0       69   234.0   233.0   9.0       5.0    0  9.0
## 2          31.0  302.0 326.0       98   215.0    61.0 114.0       1.0    0  3.0
## 3          21.0    1.0   1.0        2   185.0    78.0   0.0       0.0    0  0.0
## 4           2.5    7.1   5.9        3    11.3     6.6   2.2       0.1    0  0.2
##   Ireland Israel Italy Jamaica Japan Jordan Kazakhstan Kenya Kiribati Kuwait
## 1   313.0   63.0  85.0    82.0    77    6.0      124.0  58.0       21      0
## 2   118.0   69.0  42.0    88.0   202   21.0      246.0  22.0       34      0
## 3   165.0    9.0 237.0     9.0    16    1.0       12.0   2.0        1      0
## 4    11.4    2.5   6.5     3.4     7    0.5        6.8   1.8        1      0
##   Kyrgyzstan  Laos Latvia Lebanon Lesotho Liberia Libya Lithuania Luxembourg
## 1       31.0  62.0  281.0    20.0    82.0    19.0     0     343.0      236.0
## 2       88.0   0.0  216.0    55.0    50.0   152.0     0     244.0      133.0
## 3        6.0 123.0   62.0    31.0     0.0     2.0     0      56.0      271.0
## 4        2.4   6.2   10.5     1.9     2.8     3.1     0      12.9       11.4
##   Madagascar Malawi Malaysia Maldives Mali Malta Marshall.Islands Mauritania
## 1       26.0    8.0     13.0        0  5.0 149.0                0          0
## 2       15.0   11.0      4.0        0  1.0 100.0                0          0
## 3        4.0    1.0      0.0        0  1.0 120.0                0          0
## 4        0.8    1.5      0.3        0  0.6   6.6                0          0
##   Mauritius Mexico Micronesia Monaco Mongolia Montenegro Morocco Mozambique
## 1      98.0  238.0       62.0      0     77.0       31.0    12.0       47.0
## 2      31.0   68.0       50.0      0    189.0      114.0     6.0       18.0
## 3      18.0    5.0       18.0      0      8.0      128.0    10.0        5.0
## 4       2.6    5.5        2.3      0      4.9        4.9     0.5        1.3
##   Myanmar Namibia Nauru Nepal Netherlands New.Zealand Nicaragua Niger Nigeria
## 1     5.0   376.0    49   5.0       251.0       203.0      78.0   3.0    42.0
## 2     1.0     3.0     0   6.0        88.0        79.0     118.0   2.0     5.0
## 3     0.0     1.0     8   0.0       190.0       175.0       1.0   1.0     2.0
## 4     0.1     6.8     1   0.2         9.4         9.3       3.5   0.1     9.1
##   Niue Norway Oman Pakistan Palau Panama Papua.New.Guinea Paraguay  Peru
## 1  188  169.0 22.0        0 306.0  285.0             44.0    213.0 163.0
## 2  200   71.0 16.0        0  63.0  104.0             39.0    117.0 160.0
## 3    7  129.0  1.0        0  23.0   18.0              1.0     74.0  21.0
## 4    7    6.7  0.7        0   6.9    7.2              1.5      7.3   6.1
##   Philippines Poland Portugal Qatar South.Korea Moldova Romania
## 1        71.0  343.0      194   1.0       140.0   109.0   297.0
## 2       186.0  215.0       67  42.0        16.0   226.0   122.0
## 3         1.0   56.0      339   7.0         9.0    18.0   167.0
## 4         4.6   10.9       11   0.9         9.8     6.3    10.4
##   Russian.Federation Rwanda St..Kitts...Nevis St..Lucia
## 1              247.0   43.0             194.0     171.0
## 2              326.0    2.0             205.0     315.0
## 3               73.0    0.0              32.0      71.0
## 4               11.5    6.8               7.7      10.1
##   St..Vincent...the.Grenadines Samoa San.Marino Sao.Tome...Principe
## 1                        120.0 105.0          0                56.0
## 2                        221.0  18.0          0                38.0
## 3                         11.0  24.0          0               140.0
## 4                          6.3   2.6          0                 4.2
##   Saudi.Arabia Senegal Serbia Seychelles Sierra.Leone Singapore Slovakia
## 1          0.0     9.0  283.0      157.0         25.0      60.0    196.0
## 2          5.0     1.0  131.0       25.0          3.0      12.0    293.0
## 3          0.0     7.0  127.0       51.0          2.0      11.0    116.0
## 4          0.1     0.3    9.6        4.1          6.7       1.5     11.4
##   Slovenia Solomon.Islands Somalia South.Africa Spain Sri.Lanka Sudan Suriname
## 1    270.0            56.0       0        225.0   284      16.0   8.0    128.0
## 2     51.0            11.0       0         76.0   157     104.0  13.0    178.0
## 3    276.0             1.0       0         81.0   112       0.0   0.0      7.0
## 4     10.6             1.2       0          8.2    10       2.2   1.7      5.6
##   Swaziland Sweden Switzerland Syria Tajikistan Thailand Macedonia Timor.Leste
## 1      90.0  152.0       185.0     5        2.0     99.0     106.0         1.0
## 2       2.0   60.0       100.0    35       15.0    258.0      27.0         1.0
## 3       2.0  186.0       280.0    16        0.0      1.0      86.0         4.0
## 4       4.7    7.2        10.2     1        0.3      6.4       3.9         0.1
##   Togo Tonga Trinidad...Tobago Tunisia Turkey Turkmenistan Tuvalu Uganda
## 1 36.0  36.0             197.0    51.0   51.0         19.0      6   45.0
## 2  2.0  21.0             156.0     3.0   22.0         71.0     41    9.0
## 3 19.0   5.0               7.0    20.0    7.0         32.0      9    0.0
## 4  1.3   1.1               6.4     1.3    1.4          2.2      1    8.3
##   Ukraine United.Arab.Emirates United.Kingdom Tanzania   USA Uruguay Uzbekistan
## 1   206.0                 16.0          219.0     36.0 249.0   115.0       25.0
## 2   237.0                135.0          126.0      6.0 158.0    35.0      101.0
## 3    45.0                  5.0          195.0      1.0  84.0   220.0        8.0
## 4     8.9                  2.8           10.4      5.7   8.7     6.6        2.4
##   Vanuatu Venezuela Vietnam Yemen Zambia Zimbabwe
## 1    21.0     333.0     111   6.0   32.0     64.0
## 2    18.0     100.0       2   0.0   19.0     18.0
## 3    11.0       3.0       1   0.0    4.0      4.0
## 4     0.9       7.7       2   0.1    2.5      4.7
library(reshape)
## 
## 다음의 패키지를 부착합니다: 'reshape'
## The following objects are masked from 'package:reshape2':
## 
##     colsplit, melt, recast
## The following objects are masked from 'package:plyr':
## 
##     rename, round_any
## The following object is masked from 'package:lubridate':
## 
##     stamp
## The following objects are masked from 'package:tidyr':
## 
##     expand, smiths
## The following object is masked from 'package:dplyr':
## 
##     rename
df1<-melt(df,id='year')
df1
##     year                     variable value
## 1   1999                  Afghanistan   0.0
## 2   2000                  Afghanistan   0.0
## 3   2001                  Afghanistan   0.0
## 4   2002                  Afghanistan   0.0
## 5   1999                      Albania  89.0
## 6   2000                      Albania 132.0
## 7   2001                      Albania  54.0
## 8   2002                      Albania   4.9
## 9   1999                      Algeria  25.0
## 10  2000                      Algeria   0.0
## 11  2001                      Algeria  14.0
## 12  2002                      Algeria   0.7
## 13  1999                      Andorra 245.0
## 14  2000                      Andorra 138.0
## 15  2001                      Andorra 312.0
## 16  2002                      Andorra  12.4
## 17  1999                       Angola 217.0
## 18  2000                       Angola  57.0
## 19  2001                       Angola  45.0
## 20  2002                       Angola   5.9
## 21  1999            Antigua...Barbuda 102.0
## 22  2000            Antigua...Barbuda 128.0
## 23  2001            Antigua...Barbuda  45.0
## 24  2002            Antigua...Barbuda   4.9
## 25  1999                    Argentina 193.0
## 26  2000                    Argentina  25.0
## 27  2001                    Argentina 221.0
## 28  2002                    Argentina   8.3
## 29  1999                      Armenia  21.0
## 30  2000                      Armenia 179.0
## 31  2001                      Armenia  11.0
## 32  2002                      Armenia   3.8
## 33  1999                    Australia 261.0
## 34  2000                    Australia  72.0
## 35  2001                    Australia 212.0
## 36  2002                    Australia  10.4
## 37  1999                      Austria 279.0
## 38  2000                      Austria  75.0
## 39  2001                      Austria 191.0
## 40  2002                      Austria   9.7
## 41  1999                   Azerbaijan  21.0
## 42  2000                   Azerbaijan  46.0
## 43  2001                   Azerbaijan   5.0
## 44  2002                   Azerbaijan   1.3
## 45  1999                      Bahamas 122.0
## 46  2000                      Bahamas 176.0
## 47  2001                      Bahamas  51.0
## 48  2002                      Bahamas   6.3
## 49  1999                      Bahrain  42.0
## 50  2000                      Bahrain  63.0
## 51  2001                      Bahrain   7.0
## 52  2002                      Bahrain   2.0
## 53  1999                   Bangladesh   0.0
## 54  2000                   Bangladesh   0.0
## 55  2001                   Bangladesh   0.0
## 56  2002                   Bangladesh   0.0
## 57  1999                     Barbados 143.0
## 58  2000                     Barbados 173.0
## 59  2001                     Barbados  36.0
## 60  2002                     Barbados   6.3
## 61  1999                      Belarus 142.0
## 62  2000                      Belarus 373.0
## 63  2001                      Belarus  42.0
## 64  2002                      Belarus  14.4
## 65  1999                      Belgium 295.0
## 66  2000                      Belgium  84.0
## 67  2001                      Belgium 212.0
## 68  2002                      Belgium  10.5
## 69  1999                       Belize 263.0
## 70  2000                       Belize 114.0
## 71  2001                       Belize   8.0
## 72  2002                       Belize   6.8
## 73  1999                        Benin  34.0
## 74  2000                        Benin   4.0
## 75  2001                        Benin  13.0
## 76  2002                        Benin   1.1
## 77  1999                       Bhutan  23.0
## 78  2000                       Bhutan   0.0
## 79  2001                       Bhutan   0.0
## 80  2002                       Bhutan   0.4
## 81  1999                      Bolivia 167.0
## 82  2000                      Bolivia  41.0
## 83  2001                      Bolivia   8.0
## 84  2002                      Bolivia   3.8
## 85  1999           Bosnia.Herzegovina  76.0
## 86  2000           Bosnia.Herzegovina 173.0
## 87  2001           Bosnia.Herzegovina   8.0
## 88  2002           Bosnia.Herzegovina   4.6
## 89  1999                     Botswana 173.0
## 90  2000                     Botswana  35.0
## 91  2001                     Botswana  35.0
## 92  2002                     Botswana   5.4
## 93  1999                       Brazil 245.0
## 94  2000                       Brazil 145.0
## 95  2001                       Brazil  16.0
## 96  2002                       Brazil   7.2
## 97  1999                       Brunei  31.0
## 98  2000                       Brunei   2.0
## 99  2001                       Brunei   1.0
## 100 2002                       Brunei   0.6
## 101 1999                     Bulgaria 231.0
## 102 2000                     Bulgaria 252.0
## 103 2001                     Bulgaria  94.0
## 104 2002                     Bulgaria  10.3
## 105 1999                 Burkina.Faso  25.0
## 106 2000                 Burkina.Faso   7.0
## 107 2001                 Burkina.Faso   7.0
## 108 2002                 Burkina.Faso   4.3
## 109 1999                      Burundi  88.0
## 110 2000                      Burundi   0.0
## 111 2001                      Burundi   0.0
## 112 2002                      Burundi   6.3
## 113 1999                Cote.d.Ivoire  37.0
## 114 2000                Cote.d.Ivoire   1.0
## 115 2001                Cote.d.Ivoire   7.0
## 116 2002                Cote.d.Ivoire   4.0
## 117 1999                   Cabo.Verde 144.0
## 118 2000                   Cabo.Verde  56.0
## 119 2001                   Cabo.Verde  16.0
## 120 2002                   Cabo.Verde   4.0
## 121 1999                     Cambodia  57.0
## 122 2000                     Cambodia  65.0
## 123 2001                     Cambodia   1.0
## 124 2002                     Cambodia   2.2
## 125 1999                     Cameroon 147.0
## 126 2000                     Cameroon   1.0
## 127 2001                     Cameroon   4.0
## 128 2002                     Cameroon   5.8
## 129 1999                       Canada 240.0
## 130 2000                       Canada 122.0
## 131 2001                       Canada 100.0
## 132 2002                       Canada   8.2
## 133 1999     Central.African.Republic  17.0
## 134 2000     Central.African.Republic   2.0
## 135 2001     Central.African.Republic   1.0
## 136 2002     Central.African.Republic   1.8
## 137 1999                         Chad  15.0
## 138 2000                         Chad   1.0
## 139 2001                         Chad   1.0
## 140 2002                         Chad   0.4
## 141 1999                        Chile 130.0
## 142 2000                        Chile 124.0
## 143 2001                        Chile 172.0
## 144 2002                        Chile   7.6
## 145 1999                        China  79.0
## 146 2000                        China 192.0
## 147 2001                        China   8.0
## 148 2002                        China   5.0
## 149 1999                     Colombia 159.0
## 150 2000                     Colombia  76.0
## 151 2001                     Colombia   3.0
## 152 2002                     Colombia   4.2
## 153 1999                      Comoros   1.0
## 154 2000                      Comoros   3.0
## 155 2001                      Comoros   1.0
## 156 2002                      Comoros   0.1
## 157 1999                        Congo  76.0
## 158 2000                        Congo   1.0
## 159 2001                        Congo   9.0
## 160 2002                        Congo   1.7
## 161 1999                 Cook.Islands   0.0
## 162 2000                 Cook.Islands 254.0
## 163 2001                 Cook.Islands  74.0
## 164 2002                 Cook.Islands   5.9
## 165 1999                   Costa.Rica 149.0
## 166 2000                   Costa.Rica  87.0
## 167 2001                   Costa.Rica  11.0
## 168 2002                   Costa.Rica   4.4
## 169 1999                      Croatia 230.0
## 170 2000                      Croatia  87.0
## 171 2001                      Croatia 254.0
## 172 2002                      Croatia  10.2
## 173 1999                         Cuba  93.0
## 174 2000                         Cuba 137.0
## 175 2001                         Cuba   5.0
## 176 2002                         Cuba   4.2
## 177 1999                       Cyprus 192.0
## 178 2000                       Cyprus 154.0
## 179 2001                       Cyprus 113.0
## 180 2002                       Cyprus   8.2
## 181 1999               Czech.Republic 361.0
## 182 2000               Czech.Republic 170.0
## 183 2001               Czech.Republic 134.0
## 184 2002               Czech.Republic  11.8
## 185 1999                  North.Korea   0.0
## 186 2000                  North.Korea   0.0
## 187 2001                  North.Korea   0.0
## 188 2002                  North.Korea   0.0
## 189 1999                     DR.Congo  32.0
## 190 2000                     DR.Congo   3.0
## 191 2001                     DR.Congo   1.0
## 192 2002                     DR.Congo   2.3
## 193 1999                      Denmark 224.0
## 194 2000                      Denmark  81.0
## 195 2001                      Denmark 278.0
## 196 2002                      Denmark  10.4
## 197 1999                     Djibouti  15.0
## 198 2000                     Djibouti  44.0
## 199 2001                     Djibouti   3.0
## 200 2002                     Djibouti   1.1
## 201 1999                     Dominica  52.0
## 202 2000                     Dominica 286.0
## 203 2001                     Dominica  26.0
## 204 2002                     Dominica   6.6
## 205 1999           Dominican.Republic 193.0
## 206 2000           Dominican.Republic 147.0
## 207 2001           Dominican.Republic   9.0
## 208 2002           Dominican.Republic   6.2
## 209 1999                      Ecuador 162.0
## 210 2000                      Ecuador  74.0
## 211 2001                      Ecuador   3.0
## 212 2002                      Ecuador   4.2
## 213 1999                        Egypt   6.0
## 214 2000                        Egypt   4.0
## 215 2001                        Egypt   1.0
## 216 2002                        Egypt   0.2
## 217 1999                  El.Salvador  52.0
## 218 2000                  El.Salvador  69.0
## 219 2001                  El.Salvador   2.0
## 220 2002                  El.Salvador   2.2
## 221 1999            Equatorial.Guinea  92.0
## 222 2000            Equatorial.Guinea   0.0
## 223 2001            Equatorial.Guinea 233.0
## 224 2002            Equatorial.Guinea   5.8
## 225 1999                      Eritrea  18.0
## 226 2000                      Eritrea   0.0
## 227 2001                      Eritrea   0.0
## 228 2002                      Eritrea   0.5
## 229 1999                      Estonia 224.0
## 230 2000                      Estonia 194.0
## 231 2001                      Estonia  59.0
## 232 2002                      Estonia   9.5
## 233 1999                     Ethiopia  20.0
## 234 2000                     Ethiopia   3.0
## 235 2001                     Ethiopia   0.0
## 236 2002                     Ethiopia   0.7
## 237 1999                         Fiji  77.0
## 238 2000                         Fiji  35.0
## 239 2001                         Fiji   1.0
## 240 2002                         Fiji   2.0
## 241 1999                      Finland 263.0
## 242 2000                      Finland 133.0
## 243 2001                      Finland  97.0
## 244 2002                      Finland  10.0
## 245 1999                       France 127.0
## 246 2000                       France 151.0
## 247 2001                       France 370.0
## 248 2002                       France  11.8
## 249 1999                        Gabon 347.0
## 250 2000                        Gabon  98.0
## 251 2001                        Gabon  59.0
## 252 2002                        Gabon   8.9
## 253 1999                       Gambia   8.0
## 254 2000                       Gambia   0.0
## 255 2001                       Gambia   1.0
## 256 2002                       Gambia   2.4
## 257 1999                      Georgia  52.0
## 258 2000                      Georgia 100.0
## 259 2001                      Georgia 149.0
## 260 2002                      Georgia   5.4
## 261 1999                      Germany 346.0
## 262 2000                      Germany 117.0
## 263 2001                      Germany 175.0
## 264 2002                      Germany  11.3
## 265 1999                        Ghana  31.0
## 266 2000                        Ghana   3.0
## 267 2001                        Ghana  10.0
## 268 2002                        Ghana   1.8
## 269 1999                       Greece 133.0
## 270 2000                       Greece 112.0
## 271 2001                       Greece 218.0
## 272 2002                       Greece   8.3
## 273 1999                      Grenada 199.0
## 274 2000                      Grenada 438.0
## 275 2001                      Grenada  28.0
## 276 2002                      Grenada  11.9
## 277 1999                    Guatemala  53.0
## 278 2000                    Guatemala  69.0
## 279 2001                    Guatemala   2.0
## 280 2002                    Guatemala   2.2
## 281 1999                       Guinea   9.0
## 282 2000                       Guinea   0.0
## 283 2001                       Guinea   2.0
## 284 2002                       Guinea   0.2
## 285 1999                Guinea.Bissau  28.0
## 286 2000                Guinea.Bissau  31.0
## 287 2001                Guinea.Bissau  21.0
## 288 2002                Guinea.Bissau   2.5
## 289 1999                       Guyana  93.0
## 290 2000                       Guyana 302.0
## 291 2001                       Guyana   1.0
## 292 2002                       Guyana   7.1
## 293 1999                        Haiti   1.0
## 294 2000                        Haiti 326.0
## 295 2001                        Haiti   1.0
## 296 2002                        Haiti   5.9
## 297 1999                     Honduras  69.0
## 298 2000                     Honduras  98.0
## 299 2001                     Honduras   2.0
## 300 2002                     Honduras   3.0
## 301 1999                      Hungary 234.0
## 302 2000                      Hungary 215.0
## 303 2001                      Hungary 185.0
## 304 2002                      Hungary  11.3
## 305 1999                      Iceland 233.0
## 306 2000                      Iceland  61.0
## 307 2001                      Iceland  78.0
## 308 2002                      Iceland   6.6
## 309 1999                        India   9.0
## 310 2000                        India 114.0
## 311 2001                        India   0.0
## 312 2002                        India   2.2
## 313 1999                    Indonesia   5.0
## 314 2000                    Indonesia   1.0
## 315 2001                    Indonesia   0.0
## 316 2002                    Indonesia   0.1
## 317 1999                         Iran   0.0
## 318 2000                         Iran   0.0
## 319 2001                         Iran   0.0
## 320 2002                         Iran   0.0
## 321 1999                         Iraq   9.0
## 322 2000                         Iraq   3.0
## 323 2001                         Iraq   0.0
## 324 2002                         Iraq   0.2
## 325 1999                      Ireland 313.0
## 326 2000                      Ireland 118.0
## 327 2001                      Ireland 165.0
## 328 2002                      Ireland  11.4
## 329 1999                       Israel  63.0
## 330 2000                       Israel  69.0
## 331 2001                       Israel   9.0
## 332 2002                       Israel   2.5
## 333 1999                        Italy  85.0
## 334 2000                        Italy  42.0
## 335 2001                        Italy 237.0
## 336 2002                        Italy   6.5
## 337 1999                      Jamaica  82.0
## 338 2000                      Jamaica  88.0
## 339 2001                      Jamaica   9.0
## 340 2002                      Jamaica   3.4
## 341 1999                        Japan  77.0
## 342 2000                        Japan 202.0
## 343 2001                        Japan  16.0
## 344 2002                        Japan   7.0
## 345 1999                       Jordan   6.0
## 346 2000                       Jordan  21.0
## 347 2001                       Jordan   1.0
## 348 2002                       Jordan   0.5
## 349 1999                   Kazakhstan 124.0
## 350 2000                   Kazakhstan 246.0
## 351 2001                   Kazakhstan  12.0
## 352 2002                   Kazakhstan   6.8
## 353 1999                        Kenya  58.0
## 354 2000                        Kenya  22.0
## 355 2001                        Kenya   2.0
## 356 2002                        Kenya   1.8
## 357 1999                     Kiribati  21.0
## 358 2000                     Kiribati  34.0
## 359 2001                     Kiribati   1.0
## 360 2002                     Kiribati   1.0
## 361 1999                       Kuwait   0.0
## 362 2000                       Kuwait   0.0
## 363 2001                       Kuwait   0.0
## 364 2002                       Kuwait   0.0
## 365 1999                   Kyrgyzstan  31.0
## 366 2000                   Kyrgyzstan  88.0
## 367 2001                   Kyrgyzstan   6.0
## 368 2002                   Kyrgyzstan   2.4
## 369 1999                         Laos  62.0
## 370 2000                         Laos   0.0
## 371 2001                         Laos 123.0
## 372 2002                         Laos   6.2
## 373 1999                       Latvia 281.0
## 374 2000                       Latvia 216.0
## 375 2001                       Latvia  62.0
## 376 2002                       Latvia  10.5
## 377 1999                      Lebanon  20.0
## 378 2000                      Lebanon  55.0
## 379 2001                      Lebanon  31.0
## 380 2002                      Lebanon   1.9
## 381 1999                      Lesotho  82.0
## 382 2000                      Lesotho  50.0
## 383 2001                      Lesotho   0.0
## 384 2002                      Lesotho   2.8
## 385 1999                      Liberia  19.0
## 386 2000                      Liberia 152.0
## 387 2001                      Liberia   2.0
## 388 2002                      Liberia   3.1
## 389 1999                        Libya   0.0
## 390 2000                        Libya   0.0
## 391 2001                        Libya   0.0
## 392 2002                        Libya   0.0
## 393 1999                    Lithuania 343.0
## 394 2000                    Lithuania 244.0
## 395 2001                    Lithuania  56.0
## 396 2002                    Lithuania  12.9
## 397 1999                   Luxembourg 236.0
## 398 2000                   Luxembourg 133.0
## 399 2001                   Luxembourg 271.0
## 400 2002                   Luxembourg  11.4
## 401 1999                   Madagascar  26.0
## 402 2000                   Madagascar  15.0
## 403 2001                   Madagascar   4.0
## 404 2002                   Madagascar   0.8
## 405 1999                       Malawi   8.0
## 406 2000                       Malawi  11.0
## 407 2001                       Malawi   1.0
## 408 2002                       Malawi   1.5
## 409 1999                     Malaysia  13.0
## 410 2000                     Malaysia   4.0
## 411 2001                     Malaysia   0.0
## 412 2002                     Malaysia   0.3
## 413 1999                     Maldives   0.0
## 414 2000                     Maldives   0.0
## 415 2001                     Maldives   0.0
## 416 2002                     Maldives   0.0
## 417 1999                         Mali   5.0
## 418 2000                         Mali   1.0
## 419 2001                         Mali   1.0
## 420 2002                         Mali   0.6
## 421 1999                        Malta 149.0
## 422 2000                        Malta 100.0
## 423 2001                        Malta 120.0
## 424 2002                        Malta   6.6
## 425 1999             Marshall.Islands   0.0
## 426 2000             Marshall.Islands   0.0
## 427 2001             Marshall.Islands   0.0
## 428 2002             Marshall.Islands   0.0
## 429 1999                   Mauritania   0.0
## 430 2000                   Mauritania   0.0
## 431 2001                   Mauritania   0.0
## 432 2002                   Mauritania   0.0
## 433 1999                    Mauritius  98.0
## 434 2000                    Mauritius  31.0
## 435 2001                    Mauritius  18.0
## 436 2002                    Mauritius   2.6
## 437 1999                       Mexico 238.0
## 438 2000                       Mexico  68.0
## 439 2001                       Mexico   5.0
## 440 2002                       Mexico   5.5
## 441 1999                   Micronesia  62.0
## 442 2000                   Micronesia  50.0
## 443 2001                   Micronesia  18.0
## 444 2002                   Micronesia   2.3
## 445 1999                       Monaco   0.0
## 446 2000                       Monaco   0.0
## 447 2001                       Monaco   0.0
## 448 2002                       Monaco   0.0
## 449 1999                     Mongolia  77.0
## 450 2000                     Mongolia 189.0
## 451 2001                     Mongolia   8.0
## 452 2002                     Mongolia   4.9
## 453 1999                   Montenegro  31.0
## 454 2000                   Montenegro 114.0
## 455 2001                   Montenegro 128.0
## 456 2002                   Montenegro   4.9
## 457 1999                      Morocco  12.0
## 458 2000                      Morocco   6.0
## 459 2001                      Morocco  10.0
## 460 2002                      Morocco   0.5
## 461 1999                   Mozambique  47.0
## 462 2000                   Mozambique  18.0
## 463 2001                   Mozambique   5.0
## 464 2002                   Mozambique   1.3
## 465 1999                      Myanmar   5.0
## 466 2000                      Myanmar   1.0
## 467 2001                      Myanmar   0.0
## 468 2002                      Myanmar   0.1
## 469 1999                      Namibia 376.0
## 470 2000                      Namibia   3.0
## 471 2001                      Namibia   1.0
## 472 2002                      Namibia   6.8
## 473 1999                        Nauru  49.0
## 474 2000                        Nauru   0.0
## 475 2001                        Nauru   8.0
## 476 2002                        Nauru   1.0
## 477 1999                        Nepal   5.0
## 478 2000                        Nepal   6.0
## 479 2001                        Nepal   0.0
## 480 2002                        Nepal   0.2
## 481 1999                  Netherlands 251.0
## 482 2000                  Netherlands  88.0
## 483 2001                  Netherlands 190.0
## 484 2002                  Netherlands   9.4
## 485 1999                  New.Zealand 203.0
## 486 2000                  New.Zealand  79.0
## 487 2001                  New.Zealand 175.0
## 488 2002                  New.Zealand   9.3
## 489 1999                    Nicaragua  78.0
## 490 2000                    Nicaragua 118.0
## 491 2001                    Nicaragua   1.0
## 492 2002                    Nicaragua   3.5
## 493 1999                        Niger   3.0
## 494 2000                        Niger   2.0
## 495 2001                        Niger   1.0
## 496 2002                        Niger   0.1
## 497 1999                      Nigeria  42.0
## 498 2000                      Nigeria   5.0
## 499 2001                      Nigeria   2.0
## 500 2002                      Nigeria   9.1
## 501 1999                         Niue 188.0
## 502 2000                         Niue 200.0
## 503 2001                         Niue   7.0
## 504 2002                         Niue   7.0
## 505 1999                       Norway 169.0
## 506 2000                       Norway  71.0
## 507 2001                       Norway 129.0
## 508 2002                       Norway   6.7
## 509 1999                         Oman  22.0
## 510 2000                         Oman  16.0
## 511 2001                         Oman   1.0
## 512 2002                         Oman   0.7
## 513 1999                     Pakistan   0.0
## 514 2000                     Pakistan   0.0
## 515 2001                     Pakistan   0.0
## 516 2002                     Pakistan   0.0
## 517 1999                        Palau 306.0
## 518 2000                        Palau  63.0
## 519 2001                        Palau  23.0
## 520 2002                        Palau   6.9
## 521 1999                       Panama 285.0
## 522 2000                       Panama 104.0
## 523 2001                       Panama  18.0
## 524 2002                       Panama   7.2
## 525 1999             Papua.New.Guinea  44.0
## 526 2000             Papua.New.Guinea  39.0
## 527 2001             Papua.New.Guinea   1.0
## 528 2002             Papua.New.Guinea   1.5
## 529 1999                     Paraguay 213.0
## 530 2000                     Paraguay 117.0
## 531 2001                     Paraguay  74.0
## 532 2002                     Paraguay   7.3
## 533 1999                         Peru 163.0
## 534 2000                         Peru 160.0
## 535 2001                         Peru  21.0
## 536 2002                         Peru   6.1
## 537 1999                  Philippines  71.0
## 538 2000                  Philippines 186.0
## 539 2001                  Philippines   1.0
## 540 2002                  Philippines   4.6
## 541 1999                       Poland 343.0
## 542 2000                       Poland 215.0
## 543 2001                       Poland  56.0
## 544 2002                       Poland  10.9
## 545 1999                     Portugal 194.0
## 546 2000                     Portugal  67.0
## 547 2001                     Portugal 339.0
## 548 2002                     Portugal  11.0
## 549 1999                        Qatar   1.0
## 550 2000                        Qatar  42.0
## 551 2001                        Qatar   7.0
## 552 2002                        Qatar   0.9
## 553 1999                  South.Korea 140.0
## 554 2000                  South.Korea  16.0
## 555 2001                  South.Korea   9.0
## 556 2002                  South.Korea   9.8
## 557 1999                      Moldova 109.0
## 558 2000                      Moldova 226.0
## 559 2001                      Moldova  18.0
## 560 2002                      Moldova   6.3
## 561 1999                      Romania 297.0
## 562 2000                      Romania 122.0
## 563 2001                      Romania 167.0
## 564 2002                      Romania  10.4
## 565 1999           Russian.Federation 247.0
## 566 2000           Russian.Federation 326.0
## 567 2001           Russian.Federation  73.0
## 568 2002           Russian.Federation  11.5
## 569 1999                       Rwanda  43.0
## 570 2000                       Rwanda   2.0
## 571 2001                       Rwanda   0.0
## 572 2002                       Rwanda   6.8
## 573 1999            St..Kitts...Nevis 194.0
## 574 2000            St..Kitts...Nevis 205.0
## 575 2001            St..Kitts...Nevis  32.0
## 576 2002            St..Kitts...Nevis   7.7
## 577 1999                    St..Lucia 171.0
## 578 2000                    St..Lucia 315.0
## 579 2001                    St..Lucia  71.0
## 580 2002                    St..Lucia  10.1
## 581 1999 St..Vincent...the.Grenadines 120.0
## 582 2000 St..Vincent...the.Grenadines 221.0
## 583 2001 St..Vincent...the.Grenadines  11.0
## 584 2002 St..Vincent...the.Grenadines   6.3
## 585 1999                        Samoa 105.0
## 586 2000                        Samoa  18.0
## 587 2001                        Samoa  24.0
## 588 2002                        Samoa   2.6
## 589 1999                   San.Marino   0.0
## 590 2000                   San.Marino   0.0
## 591 2001                   San.Marino   0.0
## 592 2002                   San.Marino   0.0
## 593 1999          Sao.Tome...Principe  56.0
## 594 2000          Sao.Tome...Principe  38.0
## 595 2001          Sao.Tome...Principe 140.0
## 596 2002          Sao.Tome...Principe   4.2
## 597 1999                 Saudi.Arabia   0.0
## 598 2000                 Saudi.Arabia   5.0
## 599 2001                 Saudi.Arabia   0.0
## 600 2002                 Saudi.Arabia   0.1
## 601 1999                      Senegal   9.0
## 602 2000                      Senegal   1.0
## 603 2001                      Senegal   7.0
## 604 2002                      Senegal   0.3
## 605 1999                       Serbia 283.0
## 606 2000                       Serbia 131.0
## 607 2001                       Serbia 127.0
## 608 2002                       Serbia   9.6
## 609 1999                   Seychelles 157.0
## 610 2000                   Seychelles  25.0
## 611 2001                   Seychelles  51.0
## 612 2002                   Seychelles   4.1
## 613 1999                 Sierra.Leone  25.0
## 614 2000                 Sierra.Leone   3.0
## 615 2001                 Sierra.Leone   2.0
## 616 2002                 Sierra.Leone   6.7
## 617 1999                    Singapore  60.0
## 618 2000                    Singapore  12.0
## 619 2001                    Singapore  11.0
## 620 2002                    Singapore   1.5
## 621 1999                     Slovakia 196.0
## 622 2000                     Slovakia 293.0
## 623 2001                     Slovakia 116.0
## 624 2002                     Slovakia  11.4
## 625 1999                     Slovenia 270.0
## 626 2000                     Slovenia  51.0
## 627 2001                     Slovenia 276.0
## 628 2002                     Slovenia  10.6
## 629 1999              Solomon.Islands  56.0
## 630 2000              Solomon.Islands  11.0
## 631 2001              Solomon.Islands   1.0
## 632 2002              Solomon.Islands   1.2
## 633 1999                      Somalia   0.0
## 634 2000                      Somalia   0.0
## 635 2001                      Somalia   0.0
## 636 2002                      Somalia   0.0
## 637 1999                 South.Africa 225.0
## 638 2000                 South.Africa  76.0
## 639 2001                 South.Africa  81.0
## 640 2002                 South.Africa   8.2
## 641 1999                        Spain 284.0
## 642 2000                        Spain 157.0
## 643 2001                        Spain 112.0
## 644 2002                        Spain  10.0
## 645 1999                    Sri.Lanka  16.0
## 646 2000                    Sri.Lanka 104.0
## 647 2001                    Sri.Lanka   0.0
## 648 2002                    Sri.Lanka   2.2
## 649 1999                        Sudan   8.0
## 650 2000                        Sudan  13.0
## 651 2001                        Sudan   0.0
## 652 2002                        Sudan   1.7
## 653 1999                     Suriname 128.0
## 654 2000                     Suriname 178.0
## 655 2001                     Suriname   7.0
## 656 2002                     Suriname   5.6
## 657 1999                    Swaziland  90.0
## 658 2000                    Swaziland   2.0
## 659 2001                    Swaziland   2.0
## 660 2002                    Swaziland   4.7
## 661 1999                       Sweden 152.0
## 662 2000                       Sweden  60.0
## 663 2001                       Sweden 186.0
## 664 2002                       Sweden   7.2
## 665 1999                  Switzerland 185.0
## 666 2000                  Switzerland 100.0
## 667 2001                  Switzerland 280.0
## 668 2002                  Switzerland  10.2
## 669 1999                        Syria   5.0
## 670 2000                        Syria  35.0
## 671 2001                        Syria  16.0
## 672 2002                        Syria   1.0
## 673 1999                   Tajikistan   2.0
## 674 2000                   Tajikistan  15.0
## 675 2001                   Tajikistan   0.0
## 676 2002                   Tajikistan   0.3
## 677 1999                     Thailand  99.0
## 678 2000                     Thailand 258.0
## 679 2001                     Thailand   1.0
## 680 2002                     Thailand   6.4
## 681 1999                    Macedonia 106.0
## 682 2000                    Macedonia  27.0
## 683 2001                    Macedonia  86.0
## 684 2002                    Macedonia   3.9
## 685 1999                  Timor.Leste   1.0
## 686 2000                  Timor.Leste   1.0
## 687 2001                  Timor.Leste   4.0
## 688 2002                  Timor.Leste   0.1
## 689 1999                         Togo  36.0
## 690 2000                         Togo   2.0
## 691 2001                         Togo  19.0
## 692 2002                         Togo   1.3
## 693 1999                        Tonga  36.0
## 694 2000                        Tonga  21.0
## 695 2001                        Tonga   5.0
## 696 2002                        Tonga   1.1
## 697 1999            Trinidad...Tobago 197.0
## 698 2000            Trinidad...Tobago 156.0
## 699 2001            Trinidad...Tobago   7.0
## 700 2002            Trinidad...Tobago   6.4
## 701 1999                      Tunisia  51.0
## 702 2000                      Tunisia   3.0
## 703 2001                      Tunisia  20.0
## 704 2002                      Tunisia   1.3
## 705 1999                       Turkey  51.0
## 706 2000                       Turkey  22.0
## 707 2001                       Turkey   7.0
## 708 2002                       Turkey   1.4
## 709 1999                 Turkmenistan  19.0
## 710 2000                 Turkmenistan  71.0
## 711 2001                 Turkmenistan  32.0
## 712 2002                 Turkmenistan   2.2
## 713 1999                       Tuvalu   6.0
## 714 2000                       Tuvalu  41.0
## 715 2001                       Tuvalu   9.0
## 716 2002                       Tuvalu   1.0
## 717 1999                       Uganda  45.0
## 718 2000                       Uganda   9.0
## 719 2001                       Uganda   0.0
## 720 2002                       Uganda   8.3
## 721 1999                      Ukraine 206.0
## 722 2000                      Ukraine 237.0
## 723 2001                      Ukraine  45.0
## 724 2002                      Ukraine   8.9
## 725 1999         United.Arab.Emirates  16.0
## 726 2000         United.Arab.Emirates 135.0
## 727 2001         United.Arab.Emirates   5.0
## 728 2002         United.Arab.Emirates   2.8
## 729 1999               United.Kingdom 219.0
## 730 2000               United.Kingdom 126.0
## 731 2001               United.Kingdom 195.0
## 732 2002               United.Kingdom  10.4
## 733 1999                     Tanzania  36.0
## 734 2000                     Tanzania   6.0
## 735 2001                     Tanzania   1.0
## 736 2002                     Tanzania   5.7
## 737 1999                          USA 249.0
## 738 2000                          USA 158.0
## 739 2001                          USA  84.0
## 740 2002                          USA   8.7
## 741 1999                      Uruguay 115.0
## 742 2000                      Uruguay  35.0
## 743 2001                      Uruguay 220.0
## 744 2002                      Uruguay   6.6
## 745 1999                   Uzbekistan  25.0
## 746 2000                   Uzbekistan 101.0
## 747 2001                   Uzbekistan   8.0
## 748 2002                   Uzbekistan   2.4
## 749 1999                      Vanuatu  21.0
## 750 2000                      Vanuatu  18.0
## 751 2001                      Vanuatu  11.0
## 752 2002                      Vanuatu   0.9
## 753 1999                    Venezuela 333.0
## 754 2000                    Venezuela 100.0
## 755 2001                    Venezuela   3.0
## 756 2002                    Venezuela   7.7
## 757 1999                      Vietnam 111.0
## 758 2000                      Vietnam   2.0
## 759 2001                      Vietnam   1.0
## 760 2002                      Vietnam   2.0
## 761 1999                        Yemen   6.0
## 762 2000                        Yemen   0.0
## 763 2001                        Yemen   0.0
## 764 2002                        Yemen   0.1
## 765 1999                       Zambia  32.0
## 766 2000                       Zambia  19.0
## 767 2001                       Zambia   4.0
## 768 2002                       Zambia   2.5
## 769 1999                     Zimbabwe  64.0
## 770 2000                     Zimbabwe  18.0
## 771 2001                     Zimbabwe   4.0
## 772 2002                     Zimbabwe   4.7
names(df1)[2:3]<-c('country','disease')
names(df1)
## [1] "year"    "country" "disease"
df1 %>% filter(year==2000) %>% filter(disease>81.01036) %>% 
  NROW->result
print(result)
## [1] 76
T<-melt(airquality,id=c("month","day"),na.rm=TRUE)
head(T,3)
##   month day variable value
## 1     5   1    ozone    41
## 2     5   2    ozone    36
## 3     5   3    ozone    12
acast(T,day~month~variable)
## , , ozone
## 
##      5  6   7   8  9
## 1   41 NA 135  39 96
## 2   36 NA  49   9 78
## 3   12 NA  32  16 73
## 4   18 NA  NA  78 91
## 5   NA NA  64  35 47
## 6   28 NA  40  66 32
## 7   23 29  77 122 20
## 8   19 NA  97  89 23
## 9    8 71  97 110 21
## 10  NA 39  85  NA 24
## 11   7 NA  NA  NA 44
## 12  16 NA  10  44 21
## 13  11 23  27  28 28
## 14  14 NA  NA  65  9
## 15  18 NA   7  NA 13
## 16  14 21  48  22 46
## 17  34 37  35  59 18
## 18   6 20  61  23 13
## 19  30 12  79  31 24
## 20  11 13  63  44 16
## 21   1 NA  16  21 13
## 22  11 NA  NA   9 23
## 23   4 NA  NA  NA 36
## 24  32 NA  80  45  7
## 25  NA NA 108 168 14
## 26  NA NA  20  73 30
## 27  NA NA  52  NA NA
## 28  23 NA  82  76 14
## 29  45 NA  50 118 18
## 30 115 NA  64  84 20
## 31  37 NA  59  85 NA
## 
## , , solar.r
## 
##      5   6   7   8   9
## 1  190 286 269  83 167
## 2  118 287 248  24 197
## 3  149 242 236  77 183
## 4  313 186 101  NA 189
## 5   NA 220 175  NA  95
## 6   NA 264 314  NA  92
## 7  299 127 276 255 252
## 8   99 273 267 229 220
## 9   19 291 272 207 230
## 10 194 323 175 222 259
## 11  NA 259 139 137 236
## 12 256 250 264 192 259
## 13 290 148 175 273 238
## 14 274 332 291 157  24
## 15  65 322  48  64 112
## 16 334 191 260  71 237
## 17 307 284 274  51 224
## 18  78  37 285 115  27
## 19 322 120 187 244 238
## 20  44 137 220 190 201
## 21   8 150   7 259 238
## 22 320  59 258  36  14
## 23  25  91 295 255 139
## 24  92 250 294 212  49
## 25  66 135 223 238  20
## 26 266 127  81 215 193
## 27  NA  47  82 153 145
## 28  13  98 213 203 191
## 29 252  31 275 225 131
## 30 223 138 253 237 223
## 31 279  NA 254 188  NA
## 
## , , wind
## 
##       5    6    7    8    9
## 1   7.4  8.6  4.1  6.9  6.9
## 2   8.0  9.7  9.2 13.8  5.1
## 3  12.6 16.1  9.2  7.4  2.8
## 4  11.5  9.2 10.9  6.9  4.6
## 5  14.3  8.6  4.6  7.4  7.4
## 6  14.9 14.3 10.9  4.6 15.5
## 7   8.6  9.7  5.1  4.0 10.9
## 8  13.8  6.9  6.3 10.3 10.3
## 9  20.1 13.8  5.7  8.0 10.9
## 10  8.6 11.5  7.4  8.6  9.7
## 11  6.9 10.9  8.6 11.5 14.9
## 12  9.7  9.2 14.3 11.5 15.5
## 13  9.2  8.0 14.9 11.5  6.3
## 14 10.9 13.8 14.9  9.7 10.9
## 15 13.2 11.5 14.3 11.5 11.5
## 16 11.5 14.9  6.9 10.3  6.9
## 17 12.0 20.7 10.3  6.3 13.8
## 18 18.4  9.2  6.3  7.4 10.3
## 19 11.5 11.5  5.1 10.9 10.3
## 20  9.7 10.3 11.5 10.3  8.0
## 21  9.7  6.3  6.9 15.5 12.6
## 22 16.6  1.7  9.7 14.3  9.2
## 23  9.7  4.6 11.5 12.6 10.3
## 24 12.0  6.3  8.6  9.7 10.3
## 25 16.6  8.0  8.0  3.4 16.6
## 26 14.9  8.0  8.6  8.0  6.9
## 27  8.0 10.3 12.0  5.7 13.2
## 28 12.0 11.5  7.4  9.7 14.3
## 29 14.9 14.9  7.4  2.3  8.0
## 30  5.7  8.0  7.4  6.3 11.5
## 31  7.4   NA  9.2  6.3   NA
## 
## , , temp
## 
##     5  6  7  8  9
## 1  67 78 84 81 91
## 2  72 74 85 81 92
## 3  74 67 81 82 93
## 4  62 84 84 86 93
## 5  56 85 83 85 87
## 6  66 79 83 87 84
## 7  65 82 88 89 80
## 8  59 87 92 90 78
## 9  61 90 92 90 75
## 10 69 87 89 92 73
## 11 74 93 82 86 81
## 12 69 92 73 86 76
## 13 66 82 81 82 77
## 14 68 80 91 80 71
## 15 58 79 80 79 71
## 16 64 77 81 77 78
## 17 66 72 82 79 67
## 18 57 65 84 76 76
## 19 68 73 87 78 68
## 20 62 76 85 78 82
## 21 59 77 74 77 64
## 22 73 76 81 72 71
## 23 61 76 82 75 81
## 24 61 76 86 79 69
## 25 57 75 85 81 63
## 26 58 78 82 86 70
## 27 57 73 86 88 77
## 28 67 80 88 97 75
## 29 81 77 86 94 76
## 30 79 83 83 96 68
## 31 76 NA 81 94 NA
b<-acast(T,month~variable,mean)
b
##      ozone  solar.r      wind     temp
## 5 23.61538 181.2963 11.622581 65.54839
## 6 29.44444 190.1667 10.266667 79.10000
## 7 59.11538 216.4839  8.941935 83.90323
## 8 59.96154 171.8571  8.793548 83.96774
## 9 31.44828 167.4333 10.180000 76.90000
d<-acast(T,month~variable,mean,margins=c("grow_row","grand_col"))
d
##      ozone  solar.r      wind     temp
## 5 23.61538 181.2963 11.622581 65.54839
## 6 29.44444 190.1667 10.266667 79.10000
## 7 59.11538 216.4839  8.941935 83.90323
## 8 59.96154 171.8571  8.793548 83.96774
## 9 31.44828 167.4333 10.180000 76.90000
a<-matrix(1:6,ncol=2)
a
##      [,1] [,2]
## [1,]    1    4
## [2,]    2    5
## [3,]    3    6
apply(a,1,sum)
## [1] 5 7 9
apply(iris[,-5],2,sum)
## Sepal.Length  Sepal.Width Petal.Length  Petal.Width 
##        876.5        458.6        563.7        179.9
colSums(iris[,-5])
## Sepal.Length  Sepal.Width Petal.Length  Petal.Width 
##        876.5        458.6        563.7        179.9
data(iris)
head(iris)
##   Sepal.Length Sepal.Width Petal.Length Petal.Width Species
## 1          5.1         3.5          1.4         0.2  setosa
## 2          4.9         3.0          1.4         0.2  setosa
## 3          4.7         3.2          1.3         0.2  setosa
## 4          4.6         3.1          1.5         0.2  setosa
## 5          5.0         3.6          1.4         0.2  setosa
## 6          5.4         3.9          1.7         0.4  setosa
str(iris)
## 'data.frame':    150 obs. of  5 variables:
##  $ Sepal.Length: num  5.1 4.9 4.7 4.6 5 5.4 4.6 5 4.4 4.9 ...
##  $ Sepal.Width : num  3.5 3 3.2 3.1 3.6 3.9 3.4 3.4 2.9 3.1 ...
##  $ Petal.Length: num  1.4 1.4 1.3 1.5 1.4 1.7 1.4 1.5 1.4 1.5 ...
##  $ Petal.Width : num  0.2 0.2 0.2 0.2 0.2 0.4 0.3 0.2 0.2 0.1 ...
##  $ Species     : Factor w/ 3 levels "setosa","versicolor",..: 1 1 1 1 1 1 1 1 1 1 ...
summary(iris)
##   Sepal.Length    Sepal.Width     Petal.Length    Petal.Width   
##  Min.   :4.300   Min.   :2.000   Min.   :1.000   Min.   :0.100  
##  1st Qu.:5.100   1st Qu.:2.800   1st Qu.:1.600   1st Qu.:0.300  
##  Median :5.800   Median :3.000   Median :4.350   Median :1.300  
##  Mean   :5.843   Mean   :3.057   Mean   :3.758   Mean   :1.199  
##  3rd Qu.:6.400   3rd Qu.:3.300   3rd Qu.:5.100   3rd Qu.:1.800  
##  Max.   :7.900   Max.   :4.400   Max.   :6.900   Max.   :2.500  
##        Species  
##  setosa    :50  
##  versicolor:50  
##  virginica :50  
##                 
##                 
## 
cov(iris[,1:4])
##              Sepal.Length Sepal.Width Petal.Length Petal.Width
## Sepal.Length    0.6856935  -0.0424340    1.2743154   0.5162707
## Sepal.Width    -0.0424340   0.1899794   -0.3296564  -0.1216394
## Petal.Length    1.2743154  -0.3296564    3.1162779   1.2956094
## Petal.Width     0.5162707  -0.1216394    1.2956094   0.5810063
cor(iris[,1:4])
##              Sepal.Length Sepal.Width Petal.Length Petal.Width
## Sepal.Length    1.0000000  -0.1175698    0.8717538   0.8179411
## Sepal.Width    -0.1175698   1.0000000   -0.4284401  -0.3661259
## Petal.Length    0.8717538  -0.4284401    1.0000000   0.9628654
## Petal.Width     0.8179411  -0.3661259    0.9628654   1.0000000
library(ISLR)
data("Wage")
glimpse(Wage)
## Rows: 3,000
## Columns: 11
## $ year       <int> 2006, 2004, 2003, 2003, 2005, 2008, 2009, 2008, 2006, 2004,…
## $ age        <int> 18, 24, 45, 43, 50, 54, 44, 30, 41, 52, 45, 34, 35, 39, 54,…
## $ maritl     <fct> 1. Never Married, 1. Never Married, 2. Married, 2. Married,…
## $ race       <fct> 1. White, 1. White, 1. White, 3. Asian, 1. White, 1. White,…
## $ education  <fct> 1. < HS Grad, 4. College Grad, 3. Some College, 4. College …
## $ region     <fct> 2. Middle Atlantic, 2. Middle Atlantic, 2. Middle Atlantic,…
## $ jobclass   <fct> 1. Industrial, 2. Information, 1. Industrial, 2. Informatio…
## $ health     <fct> 1. <=Good, 2. >=Very Good, 1. <=Good, 2. >=Very Good, 1. <=…
## $ health_ins <fct> 2. No, 2. No, 1. Yes, 1. Yes, 1. Yes, 1. Yes, 1. Yes, 1. Ye…
## $ logwage    <dbl> 4.318063, 4.255273, 4.875061, 5.041393, 4.318063, 4.845098,…
## $ wage       <dbl> 75.04315, 70.47602, 130.98218, 154.68529, 75.04315, 127.115…
summary(Wage)
##       year           age                     maritl           race     
##  Min.   :2003   Min.   :18.00   1. Never Married: 648   1. White:2480  
##  1st Qu.:2004   1st Qu.:33.75   2. Married      :2074   2. Black: 293  
##  Median :2006   Median :42.00   3. Widowed      :  19   3. Asian: 190  
##  Mean   :2006   Mean   :42.41   4. Divorced     : 204   4. Other:  37  
##  3rd Qu.:2008   3rd Qu.:51.00   5. Separated    :  55                  
##  Max.   :2009   Max.   :80.00                                          
##                                                                        
##               education                     region               jobclass   
##  1. < HS Grad      :268   2. Middle Atlantic   :3000   1. Industrial :1544  
##  2. HS Grad        :971   1. New England       :   0   2. Information:1456  
##  3. Some College   :650   3. East North Central:   0                        
##  4. College Grad   :685   4. West North Central:   0                        
##  5. Advanced Degree:426   5. South Atlantic    :   0                        
##                           6. East South Central:   0                        
##                           (Other)              :   0                        
##             health      health_ins      logwage           wage       
##  1. <=Good     : 858   1. Yes:2083   Min.   :3.000   Min.   : 20.09  
##  2. >=Very Good:2142   2. No : 917   1st Qu.:4.447   1st Qu.: 85.38  
##                                      Median :4.653   Median :104.92  
##                                      Mean   :4.654   Mean   :111.70  
##                                      3rd Qu.:4.857   3rd Qu.:128.68  
##                                      Max.   :5.763   Max.   :318.34  
## 
Wage$logwage
##    [1] 4.318063 4.255273 4.875061 5.041393 4.318063 4.845098 5.133021 4.716003
##    [9] 4.778151 4.857332 4.763428 4.397940 4.494155 4.903090 4.903090 4.505150
##   [17] 4.414973 5.360552 4.861026 4.591065 5.301030 3.920123 4.447158 5.079181
##   [25] 4.544068 5.626186 4.431364 4.176091 4.755875 4.255273 5.276462 4.619093
##   [33] 4.397940 4.716003 4.498476 4.477121 4.477121 4.643453 4.662758 4.193125
##   [41] 3.544068 4.698970 3.812913 4.301030 4.397940 5.041393 5.590618 5.176091
##   [49] 4.193125 4.755875 5.301030 4.623249 5.606885 3.556303 4.740363 4.397940
##   [57] 5.301030 5.000000 4.602060 4.716003 5.029384 4.763428 4.353339 4.477121
##   [65] 4.832509 4.814913 5.064458 5.301030 4.602060 4.255273 4.544068 4.397940
##   [73] 4.397940 4.612784 4.544068 4.602060 5.591980 4.397940 4.732394 4.477121
##   [81] 4.857332 4.670246 4.190332 3.942008 4.447158 4.342423 4.505150 4.220631
##   [89] 4.875061 4.851258 4.876910 4.602060 4.342423 4.681241 4.397940 4.602060
##   [97] 4.591065 5.301030 5.053078 4.976350 4.778151 4.799341 4.716003 4.230449
##  [105] 4.740363 4.556303 4.477121 4.163161 4.857332 4.740363 4.724276 4.397940
##  [113] 4.329357 4.719721 4.447158 4.544068 4.740363 5.176091 5.623217 4.623249
##  [121] 4.518514 4.462398 5.093422 4.936011 4.556303 4.204120 4.876680 4.505150
##  [129] 4.740363 4.371068 4.650065 4.886491 4.954243 4.812913 4.903090 4.021189
##  [137] 4.672098 4.778151 4.477121 4.487845 4.397940 4.544068 4.672098 4.079181
##  [145] 4.176091 4.792392 5.060698 4.863323 5.176091 4.079181 4.544068 4.903090
##  [153] 4.397940 4.397940 5.033424 4.919078 4.318063 4.869232 4.653213 3.903090
##  [161] 4.819544 4.812913 4.358696 4.301030 4.929419 4.845098 4.230449 4.435462
##  [169] 4.447158 4.857332 4.255273 4.342423 5.000000 5.000000 5.170262 4.591065
##  [177] 4.977724 4.602060 4.949390 4.812913 4.863323 4.716003 4.643453 4.778151
##  [185] 5.021189 4.623249 4.602060 4.602060 4.602060 4.544068 5.025306 4.653213
##  [193] 4.176091 4.556303 5.158362 5.264818 4.740363 5.079181 4.494155 4.792392
##  [201] 4.301030 4.845098 4.778151 3.544068 4.740363 4.447158 5.763128 4.954243
##  [209] 4.875061 4.301030 4.875061 4.318063 5.043362 4.653213 4.292079 4.812913
##  [217] 5.060698 4.397940 4.675219 4.369216 4.301030 4.544068 4.602060 5.176091
##  [225] 4.301030 4.602060 4.544068 4.556303 4.845098 4.602060 4.561101 4.698970
##  [233] 4.778151 5.176091 4.113943 4.397940 5.546741 4.397940 4.397940 4.021189
##  [241] 4.322219 4.875061 3.778151 4.740363 4.740363 4.397940 4.227887 4.698970
##  [249] 4.579784 4.133539 4.579784 4.903090 4.113943 4.778151 4.176091 4.698970
##  [257] 4.653213 4.301030 4.954243 4.505150 4.301030 4.903090 4.698970 4.518514
##  [265] 4.556303 5.053078 4.653213 4.602060 4.000000 3.477121 4.778151 4.698970
##  [273] 4.698970 4.778151 4.707570 4.538574 4.698970 4.778151 4.778151 3.954243
##  [281] 3.778151 4.763428 4.778151 5.000000 4.623249 4.544068 4.462398 4.954243
##  [289] 4.204120 4.778151 4.661245 4.778151 5.176091 4.176091 4.447158 4.278754
##  [297] 4.491362 4.176091 4.982271 4.477121 3.716003 4.225309 4.397940 4.301030
##  [305] 4.875061 5.000000 4.397245 4.146128 4.544068 4.528917 4.342423 4.778151
##  [313] 4.380211 4.462398 4.897627 4.832509 4.531479 4.278754 4.778151 4.255273
##  [321] 4.845098 4.740363 4.477121 4.000000 4.431364 4.447158 4.954243 4.707570
##  [329] 4.380211 4.579784 5.146128 4.923488 4.322219 4.301030 5.000000 4.556303
##  [337] 4.477121 4.698970 4.397940 4.778151 4.845098 4.447158 4.397940 4.778151
##  [345] 5.096910 4.653213 4.602060 5.641006 4.929419 5.176091 4.919078 5.230449
##  [353] 4.505150 4.447158 4.977724 4.792392 4.623249 4.690196 3.653405 4.531479
##  [361] 4.838849 5.255273 5.049218 4.477121 4.079181 4.301030 4.505150 4.778151
##  [369] 5.021189 5.606885 4.579784 4.221153 4.845098 5.606885 4.716003 4.845098
##  [377] 4.477121 4.740363 4.245513 4.544068 4.846337 5.079181 5.146128 4.954243
##  [385] 4.748188 4.278754 4.301030 4.845098 3.041393 4.380211 4.633468 4.748188
##  [393] 4.579784 4.653213 4.748188 4.537819 4.812913 4.778151 4.568202 4.431364
##  [401] 4.845098 4.556303 4.397940 4.633468 4.716003 4.544068 4.845098 4.653213
##  [409] 4.221153 4.857332 4.969309 4.643453 4.518514 4.556303 4.929419 4.775392
##  [417] 4.544068 4.740363 5.010724 4.579784 4.505150 4.397940 4.875061 5.017033
##  [425] 4.875061 4.977724 4.505150 4.732394 4.477121 5.060698 4.698970 4.431364
##  [433] 5.079188 3.869232 4.079181 4.397940 4.477121 4.477121 4.968483 4.707570
##  [441] 4.778151 4.792392 5.606885 4.657534 4.234264 4.477121 4.491362 5.146128
##  [449] 4.892095 5.301030 4.531479 5.000000 4.785344 4.414973 4.662758 5.590618
##  [457] 4.653213 4.845098 5.060698 5.000000 4.176091 4.653213 4.361728 4.936011
##  [465] 4.724276 4.380211 4.176091 4.716003 4.653213 5.176091 4.602060 4.653213
##  [473] 4.260071 4.544068 4.845098 4.579784 4.698970 4.320146 4.176091 4.986772
##  [481] 4.397940 4.845098 4.301030 4.176091 4.602060 4.380211 4.301030 4.477121
##  [489] 4.778151 5.650820 4.778151 4.672098 4.605305 4.690196 4.740363 4.748188
##  [497] 4.875061 4.380211 4.672098 3.133858 4.746517 4.643453 5.217484 5.750441
##  [505] 4.602060 4.857332 4.477121 4.000000 4.602060 4.778151 4.523538 4.845098
##  [513] 3.730621 4.698970 4.414973 5.626900 4.602060 5.176091 4.431364 5.096910
##  [521] 4.397940 4.875061 4.845098 4.278754 4.653213 5.230449 5.176091 4.939519
##  [529] 4.301030 4.193125 4.397940 4.653213 4.698970 5.041393 4.672098 5.626900
##  [537] 4.477121 4.505150 4.672098 4.041393 4.397940 4.681241 5.278754 4.518514
##  [545] 5.301030 3.477121 4.653213 4.612784 4.447158 4.414973 4.579784 4.795880
##  [553] 4.897627 5.000000 4.653213 4.397940 4.505150 4.672098 4.740363 3.977724
##  [561] 4.477121 4.193125 4.568202 5.607283 4.576341 5.301030 4.812913 4.602060
##  [569] 4.544068 4.397940 5.041393 4.698970 4.812913 4.301030 4.681241 4.301030
##  [577] 4.477121 3.301030 4.544068 4.629410 5.606885 4.544068 4.397940 4.477121
##  [585] 4.698970 4.387390 5.000000 5.000000 4.397940 4.778151 4.388101 4.518514
##  [593] 4.694605 4.653213 4.176091 4.342423 4.602060 4.602060 5.060698 3.903090
##  [601] 4.505150 4.716003 5.000000 4.892095 4.903090 4.778151 4.477121 4.698970
##  [609] 4.875061 4.491362 4.633468 4.342423 5.008600 4.633468 4.505150 4.247482
##  [617] 4.672098 4.477121 4.698970 5.021189 5.000000 4.204120 4.643453 4.602060
##  [625] 4.903090 3.778151 4.759668 4.954243 4.973128 4.903090 4.778151 5.243038
##  [633] 5.079181 4.564678 4.710117 5.000000 4.602060 4.397940 4.778151 4.845098
##  [641] 4.653213 4.724276 5.641006 4.740378 4.716003 4.903090 4.322219 4.785330
##  [649] 4.778151 3.301030 5.204120 4.176091 4.954243 4.740363 4.909695 4.763428
##  [657] 4.602060 5.626900 4.544068 4.544068 4.568202 4.322219 4.653213 4.556303
##  [665] 4.000000 4.491362 4.977724 4.573336 4.875061 4.431364 4.998259 3.903090
##  [673] 4.954243 4.748188 4.176091 4.447158 4.623249 4.556303 4.602060 4.991226
##  [681] 4.944483 4.698970 4.845098 4.748188 4.079181 4.342423 4.954243 4.261406
##  [689] 5.301030 4.579784 4.602060 5.230449 4.397940 5.079181 4.158362 4.477121
##  [697] 4.301030 4.977724 4.954243 4.342423 4.819544 4.778151 5.631919 4.000000
##  [705] 5.041393 5.193125 4.778151 4.477121 4.518514 4.079181 4.819544 4.698970
##  [713] 4.544068 4.763428 4.176091 4.579784 4.770852 4.954243 4.755112 4.322219
##  [721] 4.556303 4.716003 4.643453 4.991226 4.477121 4.778151 4.612784 4.792392
##  [729] 5.267172 4.778151 5.590618 5.161368 4.897627 5.041393 5.041393 4.778151
##  [737] 4.556303 4.698970 4.716003 4.903090 4.453196 4.778151 4.477121 4.531479
##  [745] 4.698970 4.826075 4.851258 4.579784 5.290035 4.531479 4.544068 5.000000
##  [753] 4.380211 4.778151 4.477121 4.544068 5.011105 5.176091 4.301030 4.829304
##  [761] 5.626900 4.681241 4.106599 4.522183 4.698970 4.204120 4.740363 5.139879
##  [769] 4.875061 4.845098 4.763428 4.812913 4.792392 4.875061 4.397940 3.602060
##  [777] 4.653213 4.309630 4.860338 4.432007 5.225309 4.662758 5.096910 4.146128
##  [785] 4.903090 4.795185 4.544068 4.886491 4.892095 4.977724 4.778151 5.012837
##  [793] 5.631084 4.587711 4.602060 4.544068 5.176091 5.113943 4.544068 4.939519
##  [801] 4.361728 4.954247 4.755875 5.000000 4.477121 4.505150 4.954243 4.144605
##  [809] 4.176091 5.021189 4.812913 4.778151 4.380211 4.644439 4.017033 4.602060
##  [817] 4.602060 5.265033 4.633468 5.103804 4.243038 4.602060 4.740363 4.602060
##  [825] 4.556303 4.414973 4.761687 4.000000 4.929419 4.875061 5.641006 5.096910
##  [833] 5.188585 4.838849 4.255273 4.770852 4.267172 4.740363 4.929419 4.000000
##  [841] 4.544068 4.387390 4.491362 4.763428 4.845098 4.397940 3.959041 4.602060
##  [849] 4.146128 5.278754 4.623249 4.681241 3.936514 4.602060 4.146128 5.000000
##  [857] 4.602060 4.875061 4.623249 4.602060 4.380211 5.079181 4.903090 5.079181
##  [865] 4.518514 4.322219 4.913814 4.903090 4.406540 5.176091 4.778166 4.797960
##  [873] 4.544068 4.602060 4.819544 4.778151 4.414973 4.397940 4.653213 4.602060
##  [881] 4.913814 4.397940 4.226961 4.397940 4.740363 4.770852 4.602060 4.778151
##  [889] 4.778151 4.812913 4.698970 4.633468 5.096910 4.763428 4.525045 4.605305
##  [897] 4.008600 4.623249 5.000000 4.748188 4.301030 5.590618 4.863323 4.568202
##  [905] 4.477121 4.653213 4.875061 5.249902 4.770852 4.380211 4.283301 5.000000
##  [913] 4.310056 4.778151 4.857332 4.477121 5.590618 4.653213 4.531479 4.255273
##  [921] 5.301030 4.633468 4.633468 4.176091 4.698970 4.845098 4.544068 4.217484
##  [929] 4.832509 5.107210 4.397940 4.724276 4.342423 4.318063 4.857332 4.079181
##  [937] 4.155336 4.431364 4.542626 4.414973 4.778151 4.397940 4.204120 5.113943
##  [945] 4.602060 4.954243 4.963788 3.556303 4.698970 4.709660 4.886491 5.000000
##  [953] 4.301030 4.967726 4.602060 5.606885 5.301030 4.447189 4.698970 4.111733
##  [961] 4.778151 4.982271 4.724276 4.672098 4.672098 4.845098 4.477121 4.973128
##  [969] 5.077731 4.477121 4.176091 5.176091 4.000000 4.698970 4.403035 4.740363
##  [977] 4.960285 5.079181 4.544068 4.000000 4.301030 5.079181 5.000000 4.477136
##  [985] 4.623249 4.716003 4.672098 4.838849 4.698970 4.531479 4.000000 4.568202
##  [993] 4.740363 4.544068 4.556303 4.934498 4.397940 4.544068 4.477121 4.929419
## [1001] 4.494155 4.531479 4.000000 4.544068 4.230449 4.531479 4.740363 4.698970
## [1009] 4.698970 4.344392 4.544068 4.623249 4.778151 4.892095 5.056905 5.641006
## [1017] 5.204120 4.779957 4.272306 4.447158 4.278754 4.929419 4.623249 4.698970
## [1025] 4.477121 4.748188 5.255273 4.462398 4.328787 5.113943 4.041393 4.602060
## [1033] 4.531479 4.602060 4.531479 4.623249 4.977724 4.342423 4.505150 4.845098
## [1041] 4.414973 4.602060 4.161368 4.494155 4.477121 4.845098 4.204120 5.000000
## [1049] 4.812913 4.892095 4.778151 4.788875 4.748188 4.724276 4.778151 5.000000
## [1057] 4.113943 4.561101 4.491362 4.851258 4.857332 4.698970 4.740363 4.332438
## [1065] 4.812913 4.602060 4.633468 4.568202 4.763428 4.505150 4.653213 4.301030
## [1073] 4.681241 4.602060 4.096910 4.812913 4.397940 4.963788 4.235528 4.369216
## [1081] 4.857332 4.000000 4.903090 4.653213 5.626186 4.359456 4.414973 4.763428
## [1089] 4.778151 4.698970 4.079181 4.755875 4.113943 4.740363 4.361728 4.806180
## [1097] 5.000000 4.000000 4.190332 4.843855 4.397940 4.851258 4.477121 4.812913
## [1105] 4.653213 4.477121 4.880814 4.301030 4.653213 4.517460 4.812913 4.880167
## [1113] 5.735190 4.257894 4.440909 4.633468 4.643453 4.544068 4.857332 4.666518
## [1121] 4.597695 4.892095 4.361728 4.875061 4.698970 4.568202 4.698970 5.641006
## [1129] 4.544068 5.301030 4.477121 4.477121 4.579784 4.681241 4.561101 4.698970
## [1137] 4.470352 4.486742 5.113943 4.550669 4.806180 4.886491 4.568202 4.491362
## [1145] 4.397940 4.301030 4.698970 4.606166 4.899821 4.518514 4.696356 4.255273
## [1153] 4.971234 4.602060 4.544068 4.477121 4.544068 4.397940 4.748188 4.681241
## [1161] 4.619093 4.973137 4.977724 5.096910 4.397940 3.698970 4.579784 4.763428
## [1169] 4.778151 4.431364 4.486572 4.462398 4.322219 4.591065 4.477121 4.697229
## [1177] 4.380211 5.113943 4.934498 4.977724 4.447158 4.602082 4.875061 4.230449
## [1185] 4.939519 5.176091 4.342423 4.903090 4.602060 5.000000 4.380211 4.857332
## [1193] 5.197281 4.544068 4.494155 4.869232 4.350248 5.000000 5.221886 4.857332
## [1201] 4.991226 4.672098 4.748188 4.518514 5.000000 4.716003 4.838849 4.176091
## [1209] 4.681241 4.000000 4.903090 4.283301 4.875061 4.518514 5.041393 4.740363
## [1217] 4.477121 4.389166 4.544068 4.954243 4.977724 4.544068 4.845098 4.732394
## [1225] 4.621000 4.903090 4.845098 4.477121 4.361728 5.763128 4.414973 4.579784
## [1233] 4.475671 5.215844 4.698970 4.556303 4.079181 4.778151 4.875061 4.903090
## [1241] 4.477121 4.210185 4.422705 4.778151 4.662758 4.447158 4.301030 4.934498
## [1249] 4.812913 4.025306 4.954243 5.037426 4.778151 4.740363 4.795185 4.579784
## [1257] 4.954243 4.318063 4.494155 5.290035 4.178401 4.681241 4.397940 4.342423
## [1265] 4.342423 4.944483 4.653213 4.397940 4.944483 4.380211 4.380211 5.591980
## [1273] 4.826075 5.000000 4.778151 5.176091 4.698970 4.845098 4.707570 4.518514
## [1281] 4.653213 5.606885 5.591980 5.096910 4.653213 4.812913 4.778151 5.000000
## [1289] 5.167317 4.568202 4.574031 4.602060 4.602060 5.742793 4.698970 4.477121
## [1297] 4.929419 3.869818 4.653213 4.602060 4.892095 4.748188 4.795185 5.000000
## [1305] 4.792392 4.973128 4.505150 5.000000 4.812913 5.591980 4.361728 4.681241
## [1313] 5.000000 4.491362 4.875061 4.477121 4.255273 4.688420 4.389166 4.176091
## [1321] 4.176091 4.778151 4.301030 4.000000 4.193125 5.606885 4.903090 3.845098
## [1329] 4.342423 4.397940 4.602060 5.113943 4.544068 4.740363 4.477121 4.778151
## [1337] 5.087071 4.301030 4.602060 4.643453 4.690196 4.681241 4.954243 5.079181
## [1345] 4.720159 5.130334 4.568202 4.397940 4.000000 4.681241 4.919078 4.176091
## [1353] 5.190332 4.193125 4.653213 5.176091 4.740363 4.342423 4.544068 4.845098
## [1361] 4.544068 4.643453 4.602060 4.477121 4.913814 4.544068 4.477121 4.579784
## [1369] 3.778151 4.763428 4.845098 5.606885 4.698970 4.204120 4.851258 4.778151
## [1377] 4.309971 4.963788 4.477121 4.857332 4.799341 4.591065 4.763428 4.698970
## [1385] 4.602060 5.079181 4.778151 5.096910 4.707570 4.477121 4.000000 4.844477
## [1393] 4.812913 4.301030 4.602060 4.544068 4.477121 4.778151 4.176091 4.954243
## [1401] 4.903090 4.342423 4.619093 4.602060 4.556303 4.301030 4.812913 4.602060
## [1409] 4.778151 4.845098 4.977724 4.778151 4.857332 4.531479 4.230449 4.602060
## [1417] 4.698970 3.778151 5.243038 3.477121 5.041393 4.740363 5.000000 4.623249
## [1425] 4.812913 4.778151 4.318063 5.079181 4.653213 4.397940 4.602060 4.653213
## [1433] 4.556303 4.602060 4.431364 5.176091 4.778151 4.544068 4.544068 4.623249
## [1441] 4.447158 4.959041 4.778151 4.556303 4.716003 4.088136 4.602060 4.602060
## [1449] 4.462398 4.533073 4.903090 4.977724 5.000000 4.477121 4.685742 4.301030
## [1457] 4.301030 4.666920 4.361728 4.284431 4.301052 3.643453 4.602060 3.920228
## [1465] 5.138502 4.812913 4.301030 4.707570 4.832509 4.318063 4.556303 4.778151
## [1473] 4.845098 4.255273 5.113943 4.935598 3.230449 4.399950 4.477121 4.757396
## [1481] 5.113943 5.008600 4.301030 5.626186 4.919078 4.863323 4.716003 5.185712
## [1489] 3.903090 4.414973 4.301030 4.531479 4.740363 4.431364 4.342423 4.380211
## [1497] 4.875061 5.000000 4.176091 4.903090 4.544068 4.544068 4.505150 4.716012
## [1505] 4.681241 5.255273 4.977724 4.931875 3.982271 4.533174 4.397940 4.857332
## [1513] 4.913814 5.079181 4.698970 5.000000 4.685742 4.206826 4.770852 4.698970
## [1521] 3.857332 4.141763 4.255273 4.602060 4.530353 4.602082 4.740363 4.491362
## [1529] 4.778151 5.000000 4.505150 4.778151 4.490520 4.301030 4.255273 4.537819
## [1537] 4.255273 4.602060 4.591065 4.000000 4.462398 4.778151 5.079181 4.079181
## [1545] 4.529687 4.146128 4.740363 4.176091 5.000000 4.695832 4.602060 4.662758
## [1553] 4.903090 5.243038 4.653213 4.414973 4.397940 4.342423 4.447158 4.301030
## [1561] 4.669159 4.556303 4.255273 4.662758 4.033424 4.544068 4.662758 4.318063
## [1569] 4.778151 4.929419 4.602060 4.556303 4.544068 4.812913 4.505150 4.477121
## [1577] 4.698970 4.447158 5.255273 4.623249 5.000000 5.146128 4.296665 4.477121
## [1585] 5.606885 4.633468 5.079181 4.812913 4.518514 4.447158 4.698970 4.740363
## [1593] 4.434569 4.740363 4.049218 4.653213 4.832509 4.690196 4.176091 4.698970
## [1601] 4.260071 4.977724 4.623249 4.431364 4.903090 4.579784 5.041393 5.301030
## [1609] 4.089905 4.518514 4.698970 4.740363 4.193125 4.531479 4.544068 4.778151
## [1617] 4.886491 4.845098 4.602060 3.698970 4.929419 4.633468 4.380211 4.716003
## [1625] 4.130334 4.255273 4.454845 4.602060 4.732394 4.612784 4.113943 4.732796
## [1633] 4.903090 4.653232 4.698970 5.623217 5.000000 5.000000 4.698970 4.397940
## [1641] 4.380211 4.698970 5.000000 4.176091 4.480725 4.518514 4.301030 4.255273
## [1649] 4.857332 4.544068 4.591065 4.892095 4.903090 4.518514 5.079138 4.602060
## [1657] 4.740363 4.579784 4.585461 4.653213 4.698970 4.892095 4.778151 4.301030
## [1665] 4.653213 4.127623 4.579784 4.982271 4.414973 5.000000 3.903090 4.301030
## [1673] 4.301030 4.845098 4.698970 4.120574 4.713491 4.929419 4.845098 4.322219
## [1681] 4.934498 4.778151 4.698970 4.193180 4.294466 4.875061 5.623217 4.464877
## [1689] 4.698970 4.778151 4.653213 4.919078 4.431364 5.278754 4.799341 4.568483
## [1697] 4.857332 5.000000 4.447158 4.477121 4.602060 5.000000 4.397940 4.982271
## [1705] 5.004321 4.579784 4.770852 4.602060 4.778151 4.380211 4.778151 5.079181
## [1713] 5.176091 4.301030 5.041393 4.623249 4.875061 4.740363 4.662758 4.397940
## [1721] 4.903090 4.579784 4.698970 5.146128 4.216957 4.301030 4.518514 4.204120
## [1729] 4.556303 4.591065 4.698970 4.397940 4.505150 4.698970 5.000000 4.437100
## [1737] 4.623249 4.653213 4.653213 4.602060 4.619093 5.004321 4.301030 5.079181
## [1745] 4.778151 4.782523 4.681241 5.042576 4.322219 4.775246 4.342423 4.130334
## [1753] 5.204120 5.590618 4.954243 5.230449 4.278754 3.903090 4.397940 4.778151
## [1761] 4.579784 4.716003 4.623249 4.845098 4.477121 4.431364 4.361728 3.836577
## [1769] 4.889302 4.120574 4.602060 4.193125 4.690196 4.602060 5.029384 4.342423
## [1777] 4.963788 4.829947 4.325598 4.698970 5.176091 4.079181 4.602060 4.556303
## [1785] 4.653213 3.903090 4.875061 3.778151 4.778151 4.698970 4.318063 4.518514
## [1793] 4.662758 4.301030 5.136721 4.929419 4.623249 4.477121 4.361728 4.812913
## [1801] 4.755875 4.505150 4.698970 4.653213 4.778151 4.544068 4.954243 4.857332
## [1809] 4.301030 4.937016 4.544068 4.301030 4.681241 4.167317 4.929419 4.491362
## [1817] 4.602060 4.698970 4.505150 4.494155 4.632457 4.778151 5.000000 4.740363
## [1825] 4.867409 4.707570 4.740363 5.000000 5.623217 3.176091 4.643453 4.778151
## [1833] 4.272306 5.623217 4.954243 4.602060 4.690196 4.380211 4.369253 4.414973
## [1841] 4.494155 4.875061 4.697805 4.763428 4.301030 4.397940 4.392697 4.681241
## [1849] 4.342423 4.477121 4.556303 4.431364 4.602060 4.619093 4.477121 4.477121
## [1857] 4.544068 4.853589 4.916454 4.681241 4.812913 4.518514 4.361728 5.041393
## [1865] 4.913814 4.397940 4.334454 4.698970 4.474930 4.845098 5.037426 4.698970
## [1873] 4.929419 5.103804 4.929419 3.806180 4.670246 4.740363 4.301030 4.322219
## [1881] 4.954243 4.698970 5.626900 4.380211 5.113943 4.322219 4.606037 4.633468
## [1889] 4.776701 4.763428 4.816241 5.000000 4.342423 4.698970 4.662758 5.079181
## [1897] 5.008600 4.602060 4.653232 4.113943 4.662758 4.681241 4.260071 5.079181
## [1905] 4.602060 4.716003 4.322219 4.544068 4.477121 4.812913 4.602060 4.342423
## [1913] 4.462398 5.176091 4.612784 4.740363 4.207365 4.380211 4.505150 4.059942
## [1921] 4.740363 4.602060 4.494155 5.022597 4.477121 4.477121 4.653213 4.176091
## [1929] 4.857332 5.041393 4.875061 4.792392 4.397940 4.702051 5.025306 4.255273
## [1937] 4.447158 4.623249 4.447158 4.623249 4.778151 4.301030 4.301030 4.931671
## [1945] 4.698970 5.021189 5.176091 4.643453 4.857332 4.690196 4.477121 4.556303
## [1953] 4.591065 4.954243 4.812913 4.550228 5.000000 4.653213 4.812913 4.549616
## [1961] 4.845098 3.380211 4.863323 4.698970 4.602060 4.505150 4.260071 4.556303
## [1969] 4.698970 5.204120 5.079181 4.255273 4.875061 4.662758 4.698970 4.579555
## [1977] 4.716003 5.148757 4.863323 4.845098 4.903090 4.544068 4.544068 4.574031
## [1985] 5.623217 3.477121 4.436163 4.176091 4.439333 5.122216 4.544068 4.903090
## [1993] 4.397940 4.903090 4.740363 4.875061 4.653213 5.025306 4.826075 5.000000
## [2001] 4.491362 4.414973 4.544068 5.033424 3.845098 4.863323 4.875061 4.544068
## [2009] 4.602060 4.857332 4.301030 4.707570 4.602060 4.518514 4.414973 4.778151
## [2017] 5.000000 4.556303 5.096910 5.633009 4.740363 4.633468 4.477121 4.477121
## [2025] 4.255273 4.623249 5.626186 4.477121 4.653213 4.845098 4.602060 5.146128
## [2033] 4.318063 4.278754 3.544068 4.544068 5.176091 4.944483 3.301030 4.845098
## [2041] 4.740363 4.845098 4.414973 4.623249 4.462398 4.146128 4.744293 4.397940
## [2049] 4.623249 4.623249 4.636488 4.732394 5.000000 5.000000 4.660524 4.857332
## [2057] 3.946452 4.397940 5.064458 3.991226 4.845098 4.272306 4.977724 4.544068
## [2065] 4.851258 4.633468 4.494155 4.653213 4.924279 5.176091 4.579784 4.612784
## [2073] 4.397940 4.041393 4.662758 4.929419 4.690196 4.342423 4.698970 4.544068
## [2081] 4.322219 4.311754 4.397940 4.556303 4.977724 4.944483 5.000000 4.602060
## [2089] 4.079181 4.778151 4.164353 4.892095 4.079181 4.653213 4.096910 3.431525
## [2097] 4.698970 4.176091 4.544068 4.176091 4.477121 5.176091 5.243038 4.380211
## [2105] 4.711200 4.778151 4.397940 5.230449 5.041393 4.826075 5.626900 4.601082
## [2113] 4.477121 4.740363 4.977724 4.929419 5.546741 4.732394 4.770852 4.653213
## [2121] 4.875061 4.812913 4.698970 4.698970 4.929419 4.676876 4.662758 4.799341
## [2129] 4.447158 4.518514 4.505150 4.653213 4.991226 4.397940 4.681241 4.778151
## [2137] 4.653213 4.845098 4.477121 4.716003 4.397940 4.812913 5.176091 4.414973
## [2145] 4.632457 4.792392 4.954243 4.672098 5.591980 4.698970 4.602060 5.301030
## [2153] 4.698970 4.832509 4.740363 5.079181 4.602060 5.079181 4.832509 4.892095
## [2161] 4.318063 4.698970 4.146128 4.556303 4.716003 4.361728 4.602060 4.414973
## [2169] 4.361728 4.397940 4.260071 5.000000 4.872156 5.301030 5.000000 4.477121
## [2177] 4.565848 4.653213 4.130977 4.924279 4.477121 5.049218 5.176091 4.812913
## [2185] 4.929419 4.146128 4.301030 5.204120 4.755875 4.544068 5.000000 3.000000
## [2193] 4.716003 5.000000 4.397940 4.255273 4.531479 4.477121 4.494155 4.633468
## [2201] 4.301030 4.193125 4.763428 4.623249 4.755875 4.838849 4.415724 4.724276
## [2209] 4.778151 4.477121 3.989539 4.763428 4.778151 4.851258 4.477121 4.698970
## [2217] 4.230449 4.556303 4.903090 4.397940 4.230449 4.903090 4.397940 5.015259
## [2225] 4.544068 4.322219 4.954243 5.170103 5.290035 4.544068 4.397940 4.397940
## [2233] 4.336460 4.544068 4.653213 4.707570 4.531479 4.602060 4.447158 4.322219
## [2241] 4.278754 3.447158 4.531479 4.643453 4.716003 5.197281 4.698970 3.602060
## [2249] 4.301030 4.591065 4.051153 4.778151 4.414973 4.397940 5.426970 4.518514
## [2257] 4.755875 4.954243 4.397940 4.511883 4.740363 5.079181 4.602060 4.531479
## [2265] 5.623217 4.414973 4.602060 4.826075 4.612784 5.134623 4.414973 4.919078
## [2273] 5.626900 4.778151 4.778151 4.740363 4.113943 4.778151 4.892095 4.414973
## [2281] 5.000000 5.000000 4.574031 5.041393 4.477121 4.633468 5.641006 4.672098
## [2289] 5.000009 4.716003 5.000000 4.690196 4.653213 4.456366 4.633468 4.334454
## [2297] 4.826075 4.204120 4.000000 5.113943 4.518540 4.361142 4.716003 5.021189
## [2305] 4.792392 4.763428 4.406540 4.924279 3.698970 5.041393 5.041393 4.965117
## [2313] 4.361728 4.447158 5.071882 4.193125 4.716003 4.507856 4.857332 5.000000
## [2321] 4.740363 4.477121 4.544068 4.477121 5.204120 4.477121 4.531479 4.278754
## [2329] 4.806180 4.278754 4.414973 5.176091 4.954243 4.556303 4.954243 4.623249
## [2337] 4.880814 4.194570 4.778151 5.096910 4.740363 4.812913 3.693727 4.255803
## [2345] 4.301030 4.613926 4.431364 4.447158 4.954243 4.511883 4.740363 5.590618
## [2353] 5.079181 4.544068 4.939325 4.829304 4.732394 5.204120 4.633468 4.342423
## [2361] 4.698970 4.959041 4.623249 4.778151 4.633468 4.857332 4.113943 4.397975
## [2369] 5.623217 5.591980 4.653213 4.973128 4.778151 4.544068 4.301030 5.278754
## [2377] 5.130334 4.243038 4.826075 4.749427 4.491362 5.623217 5.139879 4.602060
## [2385] 5.000000 4.740363 4.857332 4.602060 4.857332 4.944483 4.716003 4.832509
## [2393] 4.544068 4.778151 4.278754 4.653213 5.626900 4.301030 4.875061 4.359456
## [2401] 4.505150 4.763428 4.602060 5.113943 4.397940 4.431364 4.740363 4.301030
## [2409] 4.745855 3.970812 4.778151 4.380211 4.033424 4.505150 4.653213 4.477121
## [2417] 4.991226 4.698970 4.778151 4.954243 4.690196 4.653213 4.698970 3.301030
## [2425] 4.255273 5.117271 4.845098 4.763428 4.643453 3.544068 4.605305 4.172369
## [2433] 4.698970 4.845098 4.740363 4.763428 4.903090 4.176091 4.963788 4.342423
## [2441] 4.602060 4.544068 4.322219 4.845098 5.113943 4.892095 4.832509 4.494155
## [2449] 4.431364 5.130334 5.079181 4.970997 4.301030 4.255273 4.301030 4.544068
## [2457] 4.421143 4.903090 4.462398 4.255273 4.875061 4.914888 4.736397 4.664642
## [2465] 4.477121 4.755875 4.963788 4.000000 3.875061 4.812913 4.767156 5.606885
## [2473] 4.977724 4.778151 4.579784 5.000000 4.845098 5.591980 4.698970 3.949390
## [2481] 4.740363 4.903090 4.477121 4.556303 4.342423 4.755875 4.397940 4.879933
## [2489] 4.763428 4.230449 4.832509 4.623249 4.944483 4.681241 4.060698 4.602060
## [2497] 4.447158 4.880814 4.397940 4.462398 5.060698 4.176149 4.505150 3.845098
## [2505] 4.447158 4.939519 5.000000 4.397940 4.778151 4.264818 4.176091 4.176091
## [2513] 4.832509 4.812913 4.260071 4.724276 4.462398 4.414973 4.875061 4.763428
## [2521] 5.176091 4.778151 4.230449 5.590618 4.602060 4.528917 4.698970 4.477121
## [2529] 4.778151 4.318063 4.740363 5.623217 5.626186 4.389166 4.740363 5.113943
## [2537] 4.447158 3.778151 4.623249 4.477121 4.799341 4.698970 4.380211 4.845098
## [2545] 4.747412 4.591087 4.973128 4.913814 4.612784 4.342423 4.505150 4.462398
## [2553] 4.819544 4.176091 4.880814 4.204120 5.278754 5.113943 4.176091 4.792392
## [2561] 4.623249 5.000000 5.069231 4.698970 4.942008 4.885469 4.778151 4.579784
## [2569] 4.903090 4.278754 4.477121 3.903090 5.004321 4.806180 4.623249 4.602060
## [2577] 4.653213 4.397940 4.301030 4.414973 5.000000 4.778151 4.863323 4.903090
## [2585] 4.380211 4.221153 3.698970 4.880814 4.903090 4.740363 4.838849 4.759668
## [2593] 4.698970 4.397245 4.477121 4.845098 4.653213 4.681241 4.698970 4.763428
## [2601] 4.681241 4.278754 5.079181 5.000000 4.963788 4.579784 4.954243 5.000000
## [2609] 4.698970 4.079181 5.027350 4.397940 3.778151 4.568202 4.623249 4.875061
## [2617] 4.414973 4.875061 4.491362 4.444045 5.113943 4.612784 4.602060 4.812913
## [2625] 5.096910 4.447158 4.322219 4.176091 4.528917 4.924279 4.904174 4.283301
## [2633] 5.184774 4.591065 4.748188 4.301030 3.602060 4.812913 4.477121 4.303196
## [2641] 5.176091 4.778151 4.903090 4.505150 5.000000 4.397940 4.875061 5.176091
## [2649] 4.414973 4.880814 4.414973 3.724276 4.763428 4.301030 4.462398 4.602060
## [2657] 4.954243 4.260071 4.278754 4.000000 4.845098 4.301030 4.939519 5.079181
## [2665] 3.176091 4.748188 4.740363 4.845098 4.924279 5.176091 3.147367 4.505150
## [2673] 4.301030 4.414973 4.041393 4.857332 4.318063 4.301030 4.682741 4.812913
## [2681] 5.626900 4.301030 4.819544 4.477121 4.255273 5.626186 5.000000 4.740363
## [2689] 4.602060 5.591980 4.875061 4.698970 5.626186 4.301030 5.590618 4.785330
## [2697] 4.954243 4.854002 4.505150 4.342423 4.845098 4.778151 5.301030 4.477121
## [2705] 5.000000 5.591980 4.477121 4.602060 4.414973 4.875061 4.690196 4.000000
## [2713] 5.735190 4.415007 4.088136 5.113943 4.380211 4.778151 4.531479 5.079181
## [2721] 4.255273 4.792392 5.079181 5.146128 4.792392 4.903090 5.000000 4.863323
## [2729] 4.903090 4.041393 4.477121 4.221153 4.857332 4.903090 4.544068 4.477121
## [2737] 4.778151 4.230449 4.544068 4.778151 4.518514 4.903090 4.845098 4.612784
## [2745] 4.662758 4.477121 4.602060 4.724276 5.096910 4.414973 4.380211 3.903090
## [2753] 5.029384 5.000000 4.619093 4.561101 4.778151 4.342423 4.778151 4.929419
## [2761] 4.000000 4.176091 4.698970 4.301030 4.662758 4.755875 4.544068 4.778151
## [2769] 5.000000 4.653213 4.380211 4.690196 4.698970 4.845098 5.021189 4.662758
## [2777] 5.301030 4.079181 4.230449 5.176091 4.643453 4.414973 5.301030 4.623249
## [2785] 5.096910 4.653213 4.698970 4.653213 4.681241 5.204120 4.318063 4.113943
## [2793] 4.447158 4.818859 5.176091 4.778151 5.591980 4.494155 4.531479 4.845098
## [2801] 4.748188 4.875073 4.230449 5.204120 4.968483 4.903090 4.146128 4.322219
## [2809] 5.176097 4.653213 4.812913 4.716003 4.716003 4.477121 4.971276 4.763428
## [2817] 4.361728 4.602060 4.812913 4.845098 4.934498 4.845098 4.255273 4.698970
## [2825] 4.260071 4.255273 5.176091 4.732394 4.414973 5.000000 5.082785 4.845098
## [2833] 4.903090 5.079181 5.590618 4.653213 4.903090 4.812913 4.204120 4.518514
## [2841] 5.079181 4.919078 5.033424 4.113943 4.176091 4.740363 5.204120 4.740363
## [2849] 4.579784 4.919078 4.579784 4.397940 4.301030 4.778151 4.732394 4.505150
## [2857] 5.079181 5.190332 4.995635 4.477121 4.078094 4.675778 3.903090 4.973128
## [2865] 4.397940 4.402261 4.477121 4.875061 4.477121 4.397940 4.491362 4.737193
## [2873] 4.653213 4.724276 4.041393 4.477121 4.778151 4.845098 4.903090 4.681241
## [2881] 5.641006 3.875061 4.845098 3.919078 4.397940 4.318063 4.653213 4.380211
## [2889] 4.875061 5.146128 4.579784 4.591065 4.431364 5.701323 4.260071 4.414973
## [2897] 4.301030 4.350248 4.518514 4.954243 4.540329 4.963788 4.518514 4.875061
## [2905] 4.477121 4.337140 4.272306 4.477121 4.389166 5.096910 4.681241 4.892095
## [2913] 4.301030 4.477121 4.779236 4.626217 4.919078 4.778151 4.176091 4.544068
## [2921] 4.929419 4.778151 4.380211 4.146128 4.903090 5.690330 4.698970 4.653213
## [2929] 5.000000 4.602060 4.778151 4.561101 4.740363 4.653213 4.623249 4.986772
## [2937] 4.380211 4.977724 4.336059 4.431364 4.748188 4.662758 4.278754 4.380211
## [2945] 4.643453 4.488551 4.602060 4.724276 4.929419 4.230449 4.694237 5.000000
## [2953] 4.602060 4.770852 4.176091 4.544068 4.591065 4.477121 4.602060 4.690196
## [2961] 4.414973 4.494155 4.579784 4.041393 4.176091 4.494155 4.431364 4.544068
## [2969] 4.447158 4.361728 5.077731 4.889302 4.477121 5.063694 4.778151 4.619093
## [2977] 4.079181 4.447158 4.477121 5.079181 4.255273 3.865933 4.875061 4.447158
## [2985] 4.602060 4.542003 4.875061 5.123852 4.836957 5.000000 4.886491 4.778151
## [2993] 4.698970 4.633468 4.893207 5.041393 4.602060 4.193125 4.477121 4.505150
#결측치처리
library(reshape)
data("french_fries")
#complete.cases() 함수는 결측값은 FALSE 반환
french_fries[!complete.cases(french_fries),]
##     time treatment subject rep potato buttery grassy rancid painty
## 315    5         3      15   1     NA      NA     NA     NA     NA
## 455    7         2      79   1    7.3      NA    0.0    0.7      0
## 515    8         1      79   1   10.5      NA    0.0    0.5      0
## 520    8         2      16   1    4.5      NA    1.4    6.7      0
## 563    8         2      79   2    5.7       0    1.4    2.3     NA
#is.na()함수는 결측값을 TRUE 반환
y<-c(1,2,3,NA)
is.na(y)
## [1] FALSE FALSE FALSE  TRUE