MIMbase {mimR}R Documentation

Submit commands to MIM and get the result back in R

Description

mim.cmd is the core function for communicating with MIM from within R. MIM commands are given as text strings and the results from submitting these commands in MIM are returned (as a vector of strings). Several functions exist for processing these results in sensible ways. See below.

Invoking mcm() gives a direct interface to MIM such that MIM commands can be entered directly. The output printed by MIM is printed the same way in the R console.

Usage

mim.cmd(cmd, look.nice = TRUE, return.look.nice=FALSE, version='R')
mcm()

Arguments

cmd A (vector of) strings of MIM commands
look.nice When TRUE the result of the last MIM command is printed on the screen and returned as a list of strings, one string per line of output. When FALSE the result is returned as a vector of strings (thereby enabeling processing of the results in R).
return.look.nice When TRUE the result of the last MIM command is returned as a list of strings, one string per line of output.
version If set to 'S' then the function also should work with Splus

Details

To exit the mcm() function, type quit, end, exit, q or e at the prompt. Note that this will not terminate the MIM program.

Value

mim.cmd returns a vector or a string, whereas mcm returns NULL

Note

Before using mimR, make sure that the MIM program is runnning.

Author(s)

Søren Højsgaard, sorenh@agrsci.dk

References

David Edwards, An Introduction to Graphical Modelling, Second Edition, Springer Verlag, 2000

See Also

Examples

mim.cmd("fact a2 b2 c2; statread abc")
mim.cmd("25 2 17 8 14 9 6 8 !")
mim.cmd("mod ab,ac,bc; fit")
##mcm()

[Package Contents]