landscape.write.foreign {kernelPop}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 <- 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

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

[Package kernelPop version 0.9.09 Index]