R/write.model.R

setGeneric("write.mpt", function(model, ...) standardGeneric("write.mpt"))

setMethod("write.mpt", "mpt.model", function(model, eqn.filename, ...) {
	model.df <- model.data.frame(model)
	write.table(dim(model.df)[1], eqn.filename, row.names = FALSE, col.names = FALSE)
	write.table(model.df[,-4], eqn.filename, append = TRUE, quote = FALSE, row.names = FALSE, col.names = FALSE)
}
)

Try the MPTinR2 package in your browser

Any scripts or data that you put into this service are public.

MPTinR2 documentation built on May 2, 2019, 4:44 p.m.