Learn R Programming

gemtc (version 0.1-2)

write.mtc.network: Writing GeMTC Network files

Description

The function mtc.write.network can be used to write a network to a GeMTC file.

Usage

write.mtc.network(network, file = "")

Arguments

network
The network object of S3 class mtc.network to write
file
Path to write the file to, If "", print to the standard output connection. If it is "|cmd", the output is piped to the command given by cmd

encoding

utf8

See Also

mtc.network, read.mtc.network, write

Examples

Run this code
file <- system.file("extdata/luades-smoking.gemtc", package="gemtc")
network <- read.mtc.network(file)
write.mtc.network(network, file=tempfile())

Run the code above in your browser using DataLab