[Blotter-commits] r86 - pkg/man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Apr 15 05:40:47 CEST 2009


Author: peter_carl
Date: 2009-04-15 05:40:47 +0200 (Wed, 15 Apr 2009)
New Revision: 86

Modified:
   pkg/man/blotter-package.Rd
Log:
- updated example to reflect changes to updatePortf and updatePosPL


Modified: pkg/man/blotter-package.Rd
===================================================================
--- pkg/man/blotter-package.Rd	2009-04-15 03:40:08 UTC (rev 85)
+++ pkg/man/blotter-package.Rd	2009-04-15 03:40:47 UTC (rev 86)
@@ -50,7 +50,7 @@
 # Download price data
 symbols = c("IBM","F","MMM")
 require(quantmod)
-getSymbols(symbols, from='2007-01-01', to='2007-02-01')
+getSymbols(symbols, from='2007-01-01', to='2007-01-31')
 
 # Initialize a portfolio object 'p'
 print('Creating portfolio \"p\"...')
@@ -73,7 +73,7 @@
 p = addTxn(p, "MMM", '2007-01-09', 50, 77.6, 0.05*50)
 
 print('Updating portfolio \"p\"...')
-p = updatePortf(p,'2007-01-03','2007-01-10')
+p = updatePortf(p,'2007-01')
 calcPortfSummary(p)
 getBySymbol(p,'Pos.Qty')
 



More information about the Blotter-commits mailing list