search for: hourofday

Displaying 2 results from an estimated 2 matches for "hourofday".

2003 Dec 16
1
Memory issues in "aggregate" (PR#5829)
...s()) > cvar <- function(x) sd(x)/mean(x) > library(sm) Library `sm', version 2; Copyright (C) 1997, 2000 A.W.Bowman & A.Azzalini type help(sm) for summary information > callsperhour <- function(x) length(x)/12 > profiles <- subset(read.csv("profiles.csv"), hourofday >= 7 & hourofday <= 19 & dayofweek >= 1 & dayofweek <= 5) > nrow(profiles) [1] 100520 > attach(profiles) > pseudo.hist <- aggregate(duration, list(Delta), length) > colnames(pseudo.hist) <- c("Delta", "N") > detach(profiles)...
2011 Jul 07
3
How to make matrix missing data 0
Dear All, I am trying to analysis traffic data with one timestamp column and speed column. This data set contains six years data; for each year, I want to make a matrix in (day of the year) * (hour) 0 1 2 . . . 23 1 2 . . 365 However random day's record is missing(e.g. there are 40 missing records in 2005 data set), when I tried to use tapply function, matrix came out is