# Creation of an environmental matrix C
# containing 2 environmental variables for 3 individuals.
# C contains one line for each individual and one column for each variable.
C = matrix(runif(6), ncol=2, nrow=3)
# Write C in a file called "tuto.env".
# Create file: "tuto.env".
write.env(C,"tuto.env")
# Read the file "tuto.env".
C = read.env("tuto.env")
Run the code above in your browser using DataLab