Re: [R] sum on column using apply

2010-04-25 Thread robert lee
# remove time from column return(as.data.frame(pivot)) } On Apr 25, 2010, at 11:07 PM, David Winsemius wrote: > > On Apr 25, 2010, at 10:15 PM, robert lee wrote: > >> I have two data frames ( x and y -- sample values below). The rows have >> HH:MM:SS and columns have names

[R] sum on column using apply

2010-04-25 Thread robert lee
I have two data frames ( x and y -- sample values below). The rows have HH:MM:SS and columns have names of devices. I am trying to find a list of 5 least used devices during recorded time period. When apply function is used to sum on the column, I get the correct answer on data frame called x