as.character,Recur-method {reda} | R Documentation |
Convert An Recur Object to A Character Vector
Description
Summarize and convert the recurrent episodes for each subjects into character strings.
Usage
## S4 method for signature 'Recur'
as.character(x, ...)
Arguments
x |
An Recur object. |
... |
Other arguments for future usage. |
Details
This function is intended to be a helper function for the 'show()' method of 'Recur' objects. To be precise, the function set the maximum number of recurrent episodes for each subject to be 'max(2L, as.integer(getOption("reda.Recur.maxPrint")))'. By default, at most three recurrent episodes will be summarized for printing. When subjects having more than three recurrent episodes, the first 'getOption("reda.Recur.maxPrint") - 1' number of recurrent episodes and the last one will be summarized. One may use 'options()' to adjust the setting. For example, the default value is equivalent to 'options(reda.Recur.maxPrint = 3)'.