objectHistory-class {portfolio} | R Documentation |
An object containing a time series of other objects, as a list.
Objects can be created by calls of the form new("objectHistory", ...)
.
freq
:"numeric"
containing the
frequency of the time series of added objects, as periods per year.
Defaults to 1. data
:"list"
containing list of
objects in the history. The names of this list are the objects' time periods. signature(object = "objectHistory", x = "ANY")
:
add an object of any class to the history object. signature(x = "objectHistory")
: return the
number of periods. signature(object = "objectHistory")
: show the
object, briefly.Jeff Enos jeff@kanecap.com
x <- new("objectHistory") x <- add(x, 1, "2005-01-01") x <- add(x, 2, "2005-01-02") length(x)