V1
mean(with(V1, rep(hits, times = ofreq)))
var(with(V1, rep(hits, times = ofreq)))
sum(with(V1, rep(hits, times = ofreq)))
if (FALSE) barplot(with(V1, ofreq),
names.arg = as.character(with(V1, hits)),
main = "London V1 buzz bomb hits",
col = "lightblue", las = 1,
ylab = "Frequency", xlab = "Hits")
Run the code above in your browser using DataLab