Learn R Programming

maRketSim (version 0.9.2)

count.history.account: Function to return the number of objects of different types in a history.account object

Description

Function to return the number of objects of different types in a history.account object

Usage

count(x, ...) "count"(x, type = "history.account", ...)

Arguments

x
A history.account object
type
Type of objects to count. If type=="history.account" | type=="account", use the default behavior for length(). Otherwise (if type is portfolio, portfolio.bond, cash, bond), return vector counts (each element is a particular time period) of the requested object type.
...
Pass-alongs.

Value

Numeric count