write.landscape.foreign {rmetasim} | R Documentation |
Save a landscape to a file in a foreign format
Description
Save a Rmetasim landscape object to a file in a suite of output formats
Usage
rland <- write.landscape.foreign(rland,fn="foreign",numi=24,fmt="GDA")
Arguments
rland |
the Rmetasim landscape object |
fn |
the path and name of the file to save the landscape
to |
numi |
number of individuals sampled per population for
inclusion in subsequent analyses |
fmt |
the output format for the landscape: Can take the
following values:"arlequin","arlequinhap","biosys","genpop","R","migrate","rerat","GDA" |
Examples
## Needs write access to the current directory, files created!!
exampleland <- new.example.landscape()
write.landscape.foreign(exampleland, fn="exampleland.nex", fmt="GDA")
rm(exampleland)