Description Usage Arguments Value Author(s) Examples
Calculates the mean or median value of a response within a replicate for every replicate within a treatment.
1 2 | medianData(Data, Treatment, Response, Replicate)
averageData(Data, Treatment, Response, Replicate)
|
Data |
A data set. |
Treatment |
The name (as a string) of the treatment variable. |
Response |
The name (as a string) of the response variable. |
Replicate |
The name (as a string) of the replicate variable. |
Returns a data set containing mean or median values for every replicate and treatment.
Joe Swintek
1 2 3 4 5 6 7 8 9 10 11 | #Data
data(lengthWeightData)
#Subset the data
SubData<-lengthWeightData[lengthWeightData$Age=='8 week', ]
SubData<-SubData[SubData$Generation=='F1', ]
SubData<-SubData[SubData$SEX=='M', ]
#Run
medianData(Data=SubData, Treatment='Treatment', Response='WEIGHT',
Replicate='Replicate')
averageData(Data=SubData, Treatment='Treatment', Response='WEIGHT',
Replicate='Replicate')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.