Hey I have some data looks like this:
ExpNum  Compound Peak Tau SS
1        a       100  30  50
2        a       145  23  45
3        b       78   45  56
4        b       45   43  23
5        c       344  23  56
Id like to fund the mean based on Compound name What I have
Norm_Table$Norm_Peak = (aggregate(data[[3]],by=list(Compound),FUN=normalization))
This is fine and I have this coding repeating 3 times just changing the data[[x]] number. Would lapply work here? or a for loop?
 
     
    