vjcitn / sars2packOLD

covid-19 work from John Mallery
0 stars 0 forks source link

demo different country queries #1

Open vjcitn opened 4 years ago

vjcitn commented 4 years ago
> zz = fetch_JHU_Data(as.data.frame=TRUE)
> zz[1:4,1:5]
  ProvinceState CountryRegion     Lat     Long 1/22/20
1                    Thailand 15.0000 101.0000       2
2                       Japan 36.0000 138.0000       2
3                   Singapore  1.2833 103.8333       0
4                       Nepal 28.1667  84.2500       0
> zz[zz$CountryRegion=="Italy",1:5]
   ProvinceState CountryRegion Lat Long 1/22/20
17                       Italy  43   12       0
> zz[zz$CountryRegion=="France",1:5]
       ProvinceState CountryRegion      Lat     Long 1/22/20
158           France        France  46.2276   2.2137       0
199        St Martin        France  18.0708 -63.0501       0
206 Saint Barthelemy        France  17.9000 -62.8333       0
406 French Polynesia        France -17.6797 149.4068       0
431    French Guiana        France   3.9339 -53.1258       0
439          Mayotte        France -12.8275  45.1662       0
443       Guadeloupe        France  16.2500 -61.5833       0
451          Reunion        France -21.1351  55.2471       0
463    New Caledonia        France -20.9043 165.6180       0
clmgit commented 4 years ago

very good. thanks. —c

On Mar 22, 2020, at 7:15 PM, Vince Carey notifications@github.com wrote:

zz = fetch_JHU_Data(as.data.frame=TRUE) zz[1:4,1:5] ProvinceState CountryRegion Lat Long 1/22/20 1 Thailand 15.0000 101.0000 2 2 Japan 36.0000 138.0000 2 3 Singapore 1.2833 103.8333 0 4 Nepal 28.1667 84.2500 0 zz[zz$CountryRegion=="Italy",1:5] ProvinceState CountryRegion Lat Long 1/22/20 17 Italy 43 12 0 zz[zz$CountryRegion=="France",1:5] ProvinceState CountryRegion Lat Long 1/22/20 158 France France 46.2276 2.2137 0 199 St Martin France 18.0708 -63.0501 0 206 Saint Barthelemy France 17.9000 -62.8333 0 406 French Polynesia France -17.6797 149.4068 0 431 French Guiana France 3.9339 -53.1258 0 439 Mayotte France -12.8275 45.1662 0 443 Guadeloupe France 16.2500 -61.5833 0 451 Reunion France -21.1351 55.2471 0 463 New Caledonia France -20.9043 165.6180 0 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vjcitn/sars2pack/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACK4HIJI75RS6JXHGQMXJTRI2L2JANCNFSM4LRPHZ4A.