search for: aeijm

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

2010 Jan 30
2
aggregate by factor
I have a data frame with two columns, a factor and a numeric. I want to create data frame with the factor, its frequency and the median of the numeric column > head(motifList) events score 1 aeijm -0.25000000 2 begjm -0.25000000 3 afgjm -0.25000000 4 afhjm -0.25000000 5 aeijm -0.25000000 6 aehjm 0.08333333 To get the frequency table of events: > motifTable <- as.data.frame(table(motifList$events)) > head(motifTable) Var1 Freq 1 aeijm 110 2 begjm 46 3 afgjm 337 4 afhjm...