WritePar {HYPEtools} | R Documentation |
Write a 'par.txt' File
Description
WritePar
prints its required argument x
to a file.
Usage
WritePar(x, filename, digits = 10, nsmall = 1)
Arguments
x |
The object to be written, a list with named vector elements, as an object returned from |
filename |
A character string naming a file to write to. Windows users: Note that Paths are separated by '/', not '\'. |
digits |
Integer, number of significant digits to export. See |
nsmall |
Integer, number of significant decimals to export. See |
Details
WritePar
writes a 'par.txt' file, typically originating from an imported and modified 'par.txt'.
Value
No return value, called for export to text files.
See Also
ReadPar
with a description of the expected content of x
.
Examples
te <- ReadPar(filename = system.file("demo_model", "par.txt", package = "HYPEtools"))
# Note that par files lose all comment rows on import
WritePar(x = te, filename = tempfile())
[Package HYPEtools version 1.6.2 Index]