Is it possible to extract extra columns form a data.table while grouping it and selecting the minimum value?
DT <- data.table(events)
firstOrders <- as.data.frame(DT[,min(property_time),by=property_.uid])
In this example, the orderids (this is a column in the events-df) should be extracted, so the ordernumber where time is minimum in the userid-group.