SCM

SCM Repository

[blotter] Diff of /pkg/blotter/R/updatePosPL.R
ViewVC logotype

Diff of /pkg/blotter/R/updatePosPL.R

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1026, Fri May 18 17:40:23 2012 UTC revision 1027, Fri May 18 17:49:04 2012 UTC
# Line 31  Line 31 
31          } else {          } else {
32          prices=Prices          prices=Prices
33      }      }
34            if(.parseISO8601(Dates)$first.time <first(index(Prices))|| is.na(.parseISO8601(Dates)$first.time)){
35            Dates<-index(prices[paste('/',.parseISO8601(Dates)$last.time,sep='')])
36        }
37    
38      if(is.null(Dates)) {# if no date is specified, get all available dates      if(is.null(Dates)) {# if no date is specified, get all available dates
39              Dates = time(prices)              Dates = time(prices)

Legend:
Removed from v.1026  
changed lines
  Added in v.1027

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business Powered By FusionForge