| read.env {LEA} | R Documentation |
envformatRead a file in the env format.
read.env(input.file)
input.file |
A character string containing a path to the input file,
an environmental data matrix in the |
R |
A matrix containing the environmental variables with one line for each individual and one column for each environmental variable. |
Eric Frichot
# 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 "example.env".
# Create file: "example.env".
write.env(C,"example.env")
# Read the file "example.env".
C = read.env("example.env")