Skip to content

Instantly share code, notes, and snippets.

Created October 7, 2019 18:31
What would you like to do?
# Transform the three factor variables gen, rack and nutrient
Arabidopsis[,c("gen","rack","nutrient")] <- lapply(Arabidopsis[,c("gen","rack","nutrient")], factor)
# Re-attach after correction, ignore warnings
# 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