I'm trying to combine rows in a data frame with factors and numeric values.
Here's an example similar to what I'm trying to do.
One option would be to change the first three
levels in 'Letter' to 'group' and then use
aggregate to get the
sum of 'Freq' by 'Letter'
levels(df1$Letter)[1:3] <- "group" aggregate(Freq~Letter, df1, sum) # Letter Freq #1 group 0.6 #2 d 0.4