Displaying 1 result from an estimated 1 matches for "gpr119data".
2011 Feb 02
2
Finding the maximum in a particular group in a dataframe
Hello
I am trying to find a way to find the max value, for only a subset of a
dataframe, depending on how the data is grouped for example,
How would I find the maxmium responce, for all the GPR119a condition below:
I've tried tapply
> tapply(GPR119data$responce, GPR119data$GPR119a, max)
Error in tapply(GPR119data$responce, GPR119data$GPR119a, max) :
arguments must have same length
responce,mouce,condition
0.105902,KO,con
0.232018561,KO,con
0.335008375,KO,con
0.387025433,KO,GPR119a
0.576769897,KO,GPR119a
0.645120419,KO,GPR119a
0.2538608,KO,GPR...