count: Function to return the number of objects of different types...

Description Usage Arguments Value

View source: R/object_functions.R

Description

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

Usage

1
2
3
	count(x, ...)
	## S3 method for class 'history.account'
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


maRketSim documentation built on May 29, 2017, 10:54 p.m.