Milk Creamatocrit: Difference between revisions
| 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} | ```{r data-manipulation} | ||
mutated.milk.data<-milk.data%>% | mutated.milk.data<-milk.data%>% | ||
group_by(replicate, MouseID, Genotype)%>% | group_by(replicate, MouseID, Genotype)%>% | ||
mutate(fat = Fat.inches*25.4, | mutate(fat = Fat.inches*25.4, | ||
| 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) | ||
``` | ``` | ||