For the last couple of weeks, I have been learning to write some R functions for simple biological systems simulations. Well, I haven't been that successful in that venture, but I surely learned some pretty useful things that we can do in R w/o spending much time and brain.

Generating the plot map in a completely randomized desine.

I think experimental designs are the inextricably related with most agricultural studies. So, at least for me, knowing this code will make my work a bit easier in future.

Here is a code that generates a randomized treatment map for a CRD experiment

> no.treat

> no.repln

> trt.samples

# This will generate random sampls for all the 6 treatments and repeat this for all the 6 replications.

> trt.map

# This will create a matrix of the random samples which is also the plot map of the experiment.