Milk Creamatocrit: Difference between revisions

Mollyec (talk | contribs)
added more to materials
Mollyec (talk | contribs)
Line 29: Line 29:
* Calculate the milk fat percentage using the following R code:
* Calculate the milk fat percentage using the following R code:


 
```{r data-manipulation}
mutated.milk.data<-milk.data%>%
mutated.milk.data<-milk.data%>%
   group_by(replicate, MouseID, Genotype)%>%
   group_by(replicate, MouseID, Genotype)%>%
Line 37: Line 37:
   mutate(total.volume = water.corrected+fat)%>%
   mutate(total.volume = water.corrected+fat)%>%
   mutate(fat.percent = (fat/total.volume)*100)
   mutate(fat.percent = (fat/total.volume)*100)
```