search for: euwifo

Displaying 1 result from an estimated 1 matches for "euwifo".

2012 Jan 24
1
Splitting up large set of survey data into categories
...if the dates are displayed as weeks, doesn't aggregate the values immediately. Unfortunately there seems to be no command which works exactly in the same manner as by() (from stata) in R. My by now most successful attempt accomplish the above described task was by using: as.data.frame(tapply(euwifo[,1]=1, list(df$date, df$region, df$industry), mean)) (where date is formatted as ISO-weekly %U) Of course I would have to loop this over all questions (20) and all answering possibilities (3) but at least it gives me an out put of the structure: . industry.region Industry....