KinPairData or KinPairSimulation object in .kindata formatThis function is part of suite of functions handling file import/export for kinship dispersal objects.
Writing to the custom .kindata format enables complete preservation of KinPairData & KinPairSimulation formats
without any loss of class attributes or metadata - ideal for saving simulation data that is intended for further in-package
processing with kindisperse.
write_kindata(x, file)Object of class KinPairData or KinPairSimulation
The file path to write to. If is doesn't end it '.kindata', this will be added.
Invisibly returns the initial object
Other export_functions:
kinpair_to_csv(),
kinpair_to_tibble(),
kinpair_to_tsv()