Description Usage Arguments Examples
Give important information about a pdmpModel
in one character
string. This method is used internally to generate default filenames or plot
titles.
1 2 3 |
x |
an object of class |
begin |
a character string that is pasted at the beginning. |
end |
a character string that is pasted at the end. |
short |
logical. If TRUE, a shorter version without space characters will be returned (useful to generate filenames). Defaults to TRUE. |
slots |
a vector specifying the names of all slots that shall be pasted
to the string. ' The default is |
sep |
a character string to separate the names and values of slots that
are vectors or lists (e. g. "times" or "parms"). It defaults to |
collapse |
a character string to separate the slots.
It defaults to |
1 2 3 4 5 6 7 | data("toggleSwitch")
format(toggleSwitch, begin = "ToggleSwitch__", end = ".rda")
format(toggleSwitch, begin = paste0(descr(toggleSwitch), ": "), short=FALSE)
parms(toggleSwitch) <- list()
cat(format(toggleSwitch, short = FALSE, collapse = ".\n",
slots = c("init", "times", "discStates"),
begin = "A model without parameters:\n"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.