# tutorial contains a matrix of genotypes R with 1000 SNPs for 165 individuals.
# and a matrix with an environmental variable C.
data("tutorial")
# write R in a file called "genotypes.lfmm"
# Create file: "genotypes.lfmm".
write.lfmm(tutorial.R,"genotypes.lfmm")
# read the file "genotypes.lfmm".
R = read.lfmm("genotypes.lfmm")
Run the code above in your browser using DataLab