I wish to (1) group data by one variable (State), (2) within each group find the row of minimum value of another variable (Employees), and (3) extr
State
Employees
Corrected plyr solution:
plyr
ddply(df, .(State), function(x) x[which.min(x$Employees),]) # State Company Employees # 1 AK D 24 # 2 RI E 19
thanks to @joel.wilson