Displaying 2 results from an estimated 2 matches for "weblog_by_date".
2008 Dec 20
2
NA, where no NA should (could!) be!
Hello,
again I'm on my weblog-script... having problems...
This code:
===========================
weblog <- read_weblog("web.log")
weblog_by_date <- split(weblog, weblog$date)
#for ( i in names(weblog_by_day) ) { print(i); print(weblog_by_day$i) }
for ( datum in names(weblog_by_date) )
{
print(datum)
selected <- weblog_by_date[[datum]]
res_size_by_host <- tapply( selected$size, selected$host, sum)
mycat <- function(a,b)...
2008 Dec 20
1
How to do indexing after splitting my data-frame?
..."Nov" "Nov" "Nov" "Nov" ...
$ year : chr "2008" "2008" "2008" "2008" ...
$ t_sec : atomic 1.23e+09 1.23e+09 1.23e+09 1.23e+09 1.23e+09 ...
..- attr(*, "tzone")= chr ""
>
>
> weblog_by_date <- split(weblog, weblog$date)
>
> weblog_by_date$"01-Dec-2008"$host
[1] 74.6.22.164 74.6.22.164 74.6.22.164 67.195.37.169
[5] 67.195.37.169 74.6.22.164 174.36.196.98 174.36.196.98
[9] 67.195.37.169 72.30.65.23 72.30.65.23 65.55.210.177
[13] 65.55....