Dear all,

I have a data frame and I want to calculate mean of the first column which
is same name for example: CTK100 group

> dput(test)
structure(list(Name = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 3L,
3L, 3L, 3L, 3L, 3L, 3L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,
2L), .Label = c("CTK100", "CTK103", "CTK121"), class = "factor"),
    Score = c(236.9726, 207.0055, 237.3464, 224.4774, 236.5034,
    206.7382, 233.94, 240.31, 240.9, 235.15, 223.36, 248.67,
    249.25, 201.4051, 244.1689, 182.2756, 229.001, 241.3211,
    196.0453, 232.6055, 225.0783, 196.0453, 232.6055, 225.0783
    )), .Names = c("Name", "Score"), class = "data.frame", row.names =
c(NA,
24L))


How can write as a programme? because the original file has more than 60K
names with duplicates.


Many thanks

Nico

	[[alternative HTML version deleted]]

