Here is my problem, I have a a series of variables that get matched to a date and multiple days time. I would like to walk through my entire list and first find the max value for each day and then print that along with the corresponding time and date. Heres what i have so far.
for (i in 1:numDays)
{
temp <- which(test[[i]]$Date == numDays[i])
temp <- test[[i]][temp,]
High[rowCnt, (i-2)+2] <- max(temp$High)
rowCnt <- rowCnt + 1
}
any suggestions?
thanks For example:
Day Time Valeue
x 5 0
x 6 1
x 7 2
x 8 3
y 1 12
y 2 0
y 3 1
y 4 5
so this should return:
day time value
x 8 3
y 1 12