| pprobe.checkinput {PortfolioProbe} | R Documentation |
This is primarily an internal function and seldom of interest for direct use.
Checks to see that two lists are the same. In practice these are lists of portions of some specific arguments.
pprobe.checkinput(new, old, exclude = NULL, suppress.warning = FALSE)
new |
a list of the newly created argument checks. |
old |
a list of the original argument checks. |
exclude |
either NULL or a character vector of the names of the
arguments that should not be checked.
|
suppress.warning |
logical value: if TRUE, then there is no warning issued
when a difference is found.
|
a single logical value that is TRUE if there were
no changes.
If a change is found and suppress.warning is FALSE, then
a warning message is issued.
The checkinput components only have a few values in them,
so it is possible for values to have changed and the check not to notice.
This help was last revised 2009 December 29.
opt1 <- update(opt0) pprobe.checkinput(opt1$checkinput, opt0$checkinput) # a warning is issued if prices, variance, expected.return # or existing have changed from the original call