Learn R Programming

HYPEtools (version 1.6.4)

WriteOptpar: Write an 'optpar.txt' File

Description

WriteOptpar prints a HYPE parameter optimization list to a file.

Usage

WriteOptpar(x, filename, digits = 10, nsmall = 1)

Value

No return value, called for export to text files.

Arguments

x

The object to be written, a list with named elements, as an object returned from ReadOptpar.

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 format.

nsmall

Integer, number of significant decimals to export. See format.

See Also

ReadOptpar with a description of the expected content of x.

Examples

Run this code
te <- ReadOptpar(filename = system.file("demo_model", "optpar.txt", package = "HYPEtools"))
WriteOptpar(x = te, filename = tempfile())

Run the code above in your browser using DataLab