kaggleのデータセット一覧を見ていたら、Meteorite-landingというものを見つけました。
Meteorite Landings | Kaggle
別に、地質学とか天文学とかに詳しいわけではないのですが面白いデータだと感じたのでRでできるようになったことを織り交ぜながら可視化して見たいなと思ったのでやって見ます。
library(ggplot2)
library(dplyr)
mtl <- read.csv("meteorite-landings.csv")
str(mtl)
'data.frame': 45716 obs. of 10 variables:
$ name : Factor w/ 45716 levels "Aachen","Aarhus",..: 1 2 6 10 406 417 429 430 435 454 ...
$ id : int 1 2 6 10 370 379 390 392 398 417 ...
$ nametype : Factor w/ 2 levels "Relict","Valid": 2 2 2 2 2 2 2 2 2 2 ...
$ recclass : Factor w/ 466 levels "Acapulcoite",..: 333 197 85 1 339 85 360 190 339 242 ...
$ mass : num 21 720 107000 1914 780 ...
$ fall : Factor w/ 2 levels "Fell","Found": 1 1 1 1 1 1 1 1 1 1 ...
$ year : int 1880 1951 1952 1976 1902 1919 1949 1814 1930 1920 ...
$ reclat : num 50.8 56.2 54.2 16.9 -33.2 ...
$ reclong : num 6.08 10.23 -113 -99.9 -64.95 ...
$ GeoLocation: Factor w/ 17101 levels "","(-1.002780, 37.150280)",..: 16779 16983 16923 9106 844 14808 16496 16453 784 721 …
head(mtl,2)
name id nametype recclass mass fall year reclat reclong GeoLocation
1 Aachen 1 Valid L5 21 Fell 1880 50.77500 6.08333 (50.775000, 6.083330)
2 Aarhus 2 Valid H6 720 Fell 1951 56.18333 10.23333 (56.183330, 10.233330)
続きを読む