landscape.write.foreign: Save a landscape to a file in a foreign format

Description Usage Arguments Examples

Description

Save a Rmetasim landscape object to a file in a suite of output formats

Usage

1
  rland <- landscape.write.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

1
2
3
4
  ## Needs write access to the current directory, files created!!
  exampleland <- landscape.new.example()
  landscape.write.foreign(exampleland, fn="exampleland.nex", fmt="GDA")
  rm(exampleland)

stranda/kernelPop2 documentation built on March 30, 2020, 5:37 a.m.