summaryrefslogtreecommitdiffstats
path: root/analysis/year.R (plain)
blob: 85d3da10b7e2f4458f3647e6481d4d4eaaed6590
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Explore the qualities of the year feature.

require(hdf5);

hdf5load("/home/don/exp007/src/influenza.h5", tidy = TRUE);

d <- influenza.aa.dat;

# All records for 1918.  Based on code from
# http://wiki.r-project.org/rwiki/doku.php?id=tips:data-frames:select_observations
p1918 <- d[d$Year == 1918, ]

# Countries represented in the 1918 dataset.
p1918$Country;

# All record with a year value.
years <- d[d$Year != 0, ];

hist(years$Year);

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.