inst/examples/sequential/03_tables.R

dir.create("tables", showWarnings=FALSE)

results <- scan("results.dat", quiet=TRUE)

frequency <- data.frame(table(Month=month.abb[results]))
cumulative <- data.frame(Number=results, CumSum=cumsum(results))

write.csv(frequency, file="tables/A.csv", row.names=FALSE, quote=FALSE)
write.csv(cumulative, file="tables/B.csv", row.names=FALSE, quote=FALSE)

Try the makeit package in your browser

Any scripts or data that you put into this service are public.

makeit documentation built on April 11, 2025, 5:38 p.m.