search for: weekmax

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

2006 Dec 01
1
group by
...o break up the data even more and split it to Site, Week, Partnumber and Lot and here I'm lost. Is there a 'grouping by' function in R which allows this operation much easier without 'hardwiring' the parameter like I did it? Code siteA Weekmin <- min(ship$TransactionWeek); Weekmax <- max(ship$TransactionWeek); Week <-Weekmin -1; repeat{ Week <- Week +1; ship1 <- subset(ship, ship$TransactionWeek == Week &ship$Testside %in% c("A")); ship2 <- subset(ship1,ship1$Yield != 0 ); ship3 <- subset(ship1,is.na(ship1$Yield)); Location <- "A&qu...