Re: [R] Hist with Dates

2013-01-15 Thread Jeff Newmiller
You should read the help for hist carefully: ?hist.Date hist has very specific rules for applying breaks that are often different than tabulation (tapply or aggregate, with or without using the cut function first). --- Jeff

Re: [R] Hist with Dates

2013-01-15 Thread Christopher W Ryan
If all you want is frequencies, could you use table()? dd <- c("2001-01-02", "2001-01-02", "2001-01-02", "2001-01-02", "2001-01-02", "2001-01-02", "2001-01-02", "2001-01-02", "2001-01-02", "2001-01-03", "2001-01-03", "2001-01-03", "2001-01-03", "2001-01-03", "2001-01-03", "2001-01-03", "2001-01-0

[R] Hist with Dates

2013-01-15 Thread Dominic Roye
Hello R-Helpers, I would like to generate the frequencies of dates (data.RData). str(data) Date[1:43748], format: "2001-01-01" "2001-01-01" "2001-01-01" "2001-01-01" ... test <- hist(data,"days",freq=T) > test$counts [1] 27 17 12 15 6 4 5 13 5 13 15 9 7 10 11 21 10 10 9 11 15 7 10