Created
October 7, 2019 18:31
-
-
Save monogenea/154383b7418a8c03a7dadc77daac5961 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Transform the three factor variables gen, rack and nutrient | |
Arabidopsis[,c("gen","rack","nutrient")] <- lapply(Arabidopsis[,c("gen","rack","nutrient")], factor) | |
str(Arabidopsis) | |
# Re-attach after correction, ignore warnings | |
attach(Arabidopsis) | |
# Add 1 to total fruits, otherwise log of 0 will prompt error | |
total.fruits <- log(1 + total.fruits) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment