Example using dplyr, the next iteration of plyr:
df2 <- df1 %>% group_by(ID) %>%
summarize(Sum_PSM = sum(PSM))
When you put the characters %>%
, you are "piping." This means you're inputting what is on the left side of that pipe operator and performing the function on the right.