Re: [R-SIG-Finance] Introducing TFX: An R Interface to the TrueFX Web API

2013-11-27 Thread veepsirtt
 QueryTrueFX(id)
   Symbol Bid.Price Ask.PriceHigh Low   TimeStamp
1 EUR/USD1.3583   1.35839 1.35883 1.35634 2013-11-28 05:48:43

I got the results
Thank you very much
veepsirtt


On Thu, Nov 28, 2013 at 10:46 AM, gsee [via R] <
ml-node+s789695n4681303...@n4.nabble.com> wrote:

> you entered a less than sign instead of an assignment operator.
>
> instead of
>   id < ConnectTrueFX(...
> it should be
>   id <- ConnectTrueFX(...
>
>
> On Wed, Nov 27, 2013 at 11:10 PM, veepsirtt <[hidden 
> email]>
> wrote:
>
> >> id < ConnectTrueFX("EUR/USD",username="veepsirtt",password="veeps203")
> > Error in id < ConnectTrueFX("EUR/USD", username = "veepsirtt", password
> =
> > "veeps203") :
> >   comparison (3) is possible only for atomic and list types
> >
> >
> >
> >
> > --
> > View this message in context:
> http://r.789695.n4.nabble.com/Introducing-TFX-An-R-Interface-to-the-TrueFX-Web-API-tp4651827p4681302.html
>
> > Sent from the Rmetrics mailing list archive at Nabble.com.
> >
> > ___
> > [hidden email] 
> > mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> > -- Subscriber-posting only. If you want to post, subscribe first.
> > -- Also note that this is not the r-help list where general R questions
> should go.
>
> ___
> [hidden email] mailing 
> list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions
> should go.
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://r.789695.n4.nabble.com/Introducing-TFX-An-R-Interface-to-the-TrueFX-Web-API-tp4651827p4681303.html
>  To unsubscribe from Introducing TFX: An R Interface to the TrueFX Web
> API, click 
> here
> .
> NAML
>




--
View this message in context: 
http://r.789695.n4.nabble.com/Introducing-TFX-An-R-Interface-to-the-TrueFX-Web-API-tp4651827p4681304.html
Sent from the Rmetrics mailing list archive at Nabble.com.
[[alternative HTML version deleted]]

___
R-SIG-Finance@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should 
go.


Re: [R-SIG-Finance] Introducing TFX: An R Interface to the TrueFX Web API

2013-11-27 Thread G See
you entered a less than sign instead of an assignment operator.

instead of
  id < ConnectTrueFX(...
it should be
  id <- ConnectTrueFX(...


On Wed, Nov 27, 2013 at 11:10 PM, veepsirtt  wrote:
>> id < ConnectTrueFX("EUR/USD",username="veepsirtt",password="veeps203")
> Error in id < ConnectTrueFX("EUR/USD", username = "veepsirtt", password =
> "veeps203") :
>   comparison (3) is possible only for atomic and list types
>
>
>
>
> --
> View this message in context: 
> http://r.789695.n4.nabble.com/Introducing-TFX-An-R-Interface-to-the-TrueFX-Web-API-tp4651827p4681302.html
> Sent from the Rmetrics mailing list archive at Nabble.com.
>
> ___
> R-SIG-Finance@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions 
> should go.

___
R-SIG-Finance@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should 
go.


Re: [R-SIG-Finance] Introducing TFX: An R Interface to the TrueFX Web API

2013-11-27 Thread veepsirtt
> id < ConnectTrueFX("EUR/USD",username="veepsirtt",password="veeps203")
Error in id < ConnectTrueFX("EUR/USD", username = "veepsirtt", password =
"veeps203") : 
  comparison (3) is possible only for atomic and list types




--
View this message in context: 
http://r.789695.n4.nabble.com/Introducing-TFX-An-R-Interface-to-the-TrueFX-Web-API-tp4651827p4681302.html
Sent from the Rmetrics mailing list archive at Nabble.com.

___
R-SIG-Finance@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should 
go.


Re: [R-SIG-Finance] Introducing TFX: An R Interface to the TrueFX Web API

2013-11-27 Thread G See
Because you've pasted a right single quote unicode symbol instead of
typing an apostrophe.

When I copy/paste from the command you entered, I get

R> charToRaw("’")
[1] e2 80 99

When I type an apostrophe using the keyboard, I get

R> charToRaw("'")
[1] 27

Try typing your command instead of copy/pasting it.

Hope this helps,
Garrett

On Wed, Nov 27, 2013 at 10:37 PM, veepsirtt  wrote:
> Hello Gsee,
> Why I am getting this error?.
> unexpected input in "QueryTrueFX(ConnectTrueFX(username=’"
> ---
>
>>  ## Cannot run these because there may not be an internet connection
>>  ## Not run:
>> library(TFX)
>> QueryTrueFX() #unauthenticated
> Symbol Bid.Price Ask.Price  High   Low   TimeStamp
> 1  EUR/USD   1.35773   1.35781   1.35804   1.35634 2013-11-28 04:29:35
> 2  USD/JPY 102.05800 102.06400 102.29100 101.93300 2013-11-28 04:29:38
> 3  GBP/USD   1.63036   1.63055   1.63074   1.62763 2013-11-28 04:29:35
> 4  EUR/GBP   0.83265   0.83282   0.83436   0.83235 2013-11-28 04:29:35
> 5  USD/CHF   0.90768   0.90784   0.90874   0.90725 2013-11-28 04:29:40
> 6  EUR/JPY 138.56800 138.58300 138.84900 138.29900 2013-11-28 04:29:35
> 7  EUR/CHF   1.23241   1.23266   1.23308   1.23195 2013-11-28 04:29:35
> 8  USD/CAD   1.05844   1.05867   1.05987   1.05746 2013-11-28 04:29:34
> 9  AUD/USD   0.91259   0.91270   0.91411   0.90742 2013-11-28 04:29:34
> 10 GBP/JPY 166.38900 166.42000 166.61000 165.95600 2013-11-28 04:29:35
>>  QueryTrueFX(pretty=FALSE)
> $Symbol
>  [1] "EUR/USD" "USD/JPY" "GBP/USD" "EUR/GBP" "USD/CHF" "EUR/JPY" "EUR/CHF"
> "USD/CAD" "AUD/USD" "GBP/JPY"
>
> $BidBigNumber
>  [1] "1.35" "102." "1.63" "0.83" "0.90" "138." "1.23" "1.05" "0.91" "166."
>
> $BidPip
>  [1] "773" "058" "036" "265" "768" "568" "241" "844" "259" "389"
>
> $OfferBigNumber
>  [1] "1.35" "102." "1.63" "0.83" "0.90" "138." "1.23" "1.05" "0.91" "166."
>
> $OfferPip
>  [1] "781" "064" "055" "282" "784" "583" "266" "867" "270" "420"
>
> $High
>  [1] "1.35804" "102.291" "1.63074" "0.83436" "0.90874" "138.849" "1.23308"
> "1.05987" "0.91411" "166.610"
>
> $Low
>  [1] "1.35634" "101.933" "1.62763" "0.83235" "0.90725" "138.299" "1.23195"
> "1.05746" "0.90742" "165.956"
>
> $TimeStamp
>  [1] "1385612975232" "1385612978277" "1385612975780" "1385612975128"
> "1385612980409" "1385612975181"
>  [7] "1385612975905" "1385612974630" "1385612974758" "1385612975675"
>
>>  QueryTrueFX(parse=FALSE)
> [1]
> "EUR/USDUSD/JPYGBP/USDEUR/GBPUSD/CHFEUR/JPYEUR/CHFUSD/CADAUD/USDGBP/JPY1.35102.1.630.830.90138.1.231.050.91166.7690580362627735672398442593891.35102.1.630.830.90138.1.231.050.91166.7770640552787875812638672704201.35804102.2911.630740.834360.90874138.8491.233081.059870.91411166.6101.35634101.9331.627630.832350.90725138.2991.231951.057460.90742165.9561385612981970138561297827713856129820241385612981995138561298220413856129818141385612981814138561297463013856129747581385612975675"
>>
>>  ## For authenticated session, you must have a username and password
>> (it’s> free).
>>  ## Use your username and passward instead of JSTrader and Ou812
>>
>> id <- ConnectTrueFX(’EUR/USD,GBP/USD’,
>> username=’veepsirtt’,password=’veeps203’)
> Error: unexpected input in "id <- ConnectTrueFX(’"
>>  QueryTrueFX(id)
>Symbol Bid.Price Ask.PriceHigh Low   TimeStamp
> 1 EUR/USD   1.35769   1.35777 1.35804 1.35634 2013-11-28 04:29:52
> 2 GBP/USD   1.63031   1.63048 1.63074 1.62763 2013-11-28 04:29:52
>> id
> 
> attr(,"class")
> [1] "TFXsession"  "environment"
>> QueryTrueFX(ConnectTrueFX(username=’veepsirtt’,
>> password=’veeps203’,format=’csv’), arse=FALSE)
> Error: unexpected input in "QueryTrueFX(ConnectTrueFX(username=’"
>> QueryTrueFX(ConnectTrueFX(username=’veepsirtt’,
>> password=’veeps203’,format=’html’), arse=FALSE)
> Error: unexpected input in "QueryTrueFX(ConnectTrueFX(username=’"
>>
>
>
>
>
> --
> View this message in context: 
> http://r.789695.n4.nabble.com/Introducing-TFX-An-R-Interface-to-the-TrueFX-Web-API-tp4651827p4681300.html
> Sent from the Rmetrics mailing list archive at Nabble.com.
>
> ___
> R-SIG-Finance@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions 
> should go.

___
R-SIG-Finance@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should 
go.

Re: [R-SIG-Finance] Introducing TFX: An R Interface to the TrueFX Web API

2013-11-27 Thread veepsirtt
Hello Gsee,
Why I am getting this error?.
unexpected input in "QueryTrueFX(ConnectTrueFX(username=’"
---

>  ## Cannot run these because there may not be an internet connection
>  ## Not run:
> library(TFX)
> QueryTrueFX() #unauthenticated
Symbol Bid.Price Ask.Price  High   Low   TimeStamp
1  EUR/USD   1.35773   1.35781   1.35804   1.35634 2013-11-28 04:29:35
2  USD/JPY 102.05800 102.06400 102.29100 101.93300 2013-11-28 04:29:38
3  GBP/USD   1.63036   1.63055   1.63074   1.62763 2013-11-28 04:29:35
4  EUR/GBP   0.83265   0.83282   0.83436   0.83235 2013-11-28 04:29:35
5  USD/CHF   0.90768   0.90784   0.90874   0.90725 2013-11-28 04:29:40
6  EUR/JPY 138.56800 138.58300 138.84900 138.29900 2013-11-28 04:29:35
7  EUR/CHF   1.23241   1.23266   1.23308   1.23195 2013-11-28 04:29:35
8  USD/CAD   1.05844   1.05867   1.05987   1.05746 2013-11-28 04:29:34
9  AUD/USD   0.91259   0.91270   0.91411   0.90742 2013-11-28 04:29:34
10 GBP/JPY 166.38900 166.42000 166.61000 165.95600 2013-11-28 04:29:35
>  QueryTrueFX(pretty=FALSE)
$Symbol
 [1] "EUR/USD" "USD/JPY" "GBP/USD" "EUR/GBP" "USD/CHF" "EUR/JPY" "EUR/CHF"
"USD/CAD" "AUD/USD" "GBP/JPY"

$BidBigNumber
 [1] "1.35" "102." "1.63" "0.83" "0.90" "138." "1.23" "1.05" "0.91" "166."

$BidPip
 [1] "773" "058" "036" "265" "768" "568" "241" "844" "259" "389"

$OfferBigNumber
 [1] "1.35" "102." "1.63" "0.83" "0.90" "138." "1.23" "1.05" "0.91" "166."

$OfferPip
 [1] "781" "064" "055" "282" "784" "583" "266" "867" "270" "420"

$High
 [1] "1.35804" "102.291" "1.63074" "0.83436" "0.90874" "138.849" "1.23308"
"1.05987" "0.91411" "166.610"

$Low
 [1] "1.35634" "101.933" "1.62763" "0.83235" "0.90725" "138.299" "1.23195"
"1.05746" "0.90742" "165.956"

$TimeStamp
 [1] "1385612975232" "1385612978277" "1385612975780" "1385612975128"
"1385612980409" "1385612975181"
 [7] "1385612975905" "1385612974630" "1385612974758" "1385612975675"

>  QueryTrueFX(parse=FALSE)
[1]
"EUR/USDUSD/JPYGBP/USDEUR/GBPUSD/CHFEUR/JPYEUR/CHFUSD/CADAUD/USDGBP/JPY1.35102.1.630.830.90138.1.231.050.91166.7690580362627735672398442593891.35102.1.630.830.90138.1.231.050.91166.7770640552787875812638672704201.35804102.2911.630740.834360.90874138.8491.233081.059870.91411166.6101.35634101.9331.627630.832350.90725138.2991.231951.057460.90742165.9561385612981970138561297827713856129820241385612981995138561298220413856129818141385612981814138561297463013856129747581385612975675"
> 
>  ## For authenticated session, you must have a username and password
> (it’s> free).
>  ## Use your username and passward instead of JSTrader and Ou812
> 
> id <- ConnectTrueFX(’EUR/USD,GBP/USD’,
> username=’veepsirtt’,password=’veeps203’)
Error: unexpected input in "id <- ConnectTrueFX(’"
>  QueryTrueFX(id)
   Symbol Bid.Price Ask.PriceHigh Low   TimeStamp
1 EUR/USD   1.35769   1.35777 1.35804 1.35634 2013-11-28 04:29:52
2 GBP/USD   1.63031   1.63048 1.63074 1.62763 2013-11-28 04:29:52
> id

attr(,"class")
[1] "TFXsession"  "environment"
> QueryTrueFX(ConnectTrueFX(username=’veepsirtt’,
> password=’veeps203’,format=’csv’), arse=FALSE)
Error: unexpected input in "QueryTrueFX(ConnectTrueFX(username=’"
> QueryTrueFX(ConnectTrueFX(username=’veepsirtt’,
> password=’veeps203’,format=’html’), arse=FALSE)
Error: unexpected input in "QueryTrueFX(ConnectTrueFX(username=’"
> 




--
View this message in context: 
http://r.789695.n4.nabble.com/Introducing-TFX-An-R-Interface-to-the-TrueFX-Web-API-tp4651827p4681300.html
Sent from the Rmetrics mailing list archive at Nabble.com.

___
R-SIG-Finance@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should 
go.

Re: [R-SIG-Finance] Introducing TFX: An R Interface to the TrueFX Web API

2013-11-27 Thread veepsirtt
> id <- ConnectTrueFX('EUR/USD,GBP/USD', username='veepsirtt',+ 
> password='veeps203')> > id
attr(,"class")
[1] "TFXsession"  "environment"


>


On Tue, Nov 26, 2013 at 8:33 PM, gsee [via R] <
ml-node+s789695n4681182...@n4.nabble.com> wrote:

> Try typing that command.  Your single quote is a weird character.  Try
> this:
>
> id <- ConnectTrueFX('EUR/USD,GBP/USD', username='veepsirtt',
>   password='veeps203')
>
> On Tue, Nov 26, 2013 at 3:47 AM, veepsirtt <[hidden 
> email]>
> wrote:
>
> > Hello gsee,
> >
> > I tryied the examples given in your documentation.
> > But I am getting errors.
> > what is the problem?
> > With regards
> > veepsirtt.
> > 
> >
> > ## Cannot run these because there may not be an internet connection
> > ## Not run:
> > library(TFX)
> > QueryTrueFX() #unauthenticated
> > QueryTrueFX(pretty=FALSE)
> > QueryTrueFX(parse=FALSE)
> >
> > ## For authenticated session, you must have a username and password
> (it’s
> > free).
> > ## Use your username and passward instead of JSTrader and Ou812
> >
> > id <- ConnectTrueFX(’EUR/USD,GBP/USD’, username=’veepsirtt’,
> > password=’veeps203’)
> > QueryTrueFX(id)
> > QueryTrueFX(ConnectTrueFX(username=’veepsirtt’,
> > password=’veeps203’,format=’csv’), parse=FALSE)
> > QueryTrueFX(ConnectTrueFX(username=’veepsirtt’,
> > password=’veeps203’,format=’html’), parse=FALSE)
> > ## If you have shiny installed
> > ## install.packages("shiny", repos="http://rstudio.org/_packages";)
> > library(shiny)
> >
> > runGist("4122626")
> >
> > ## view the code for this shiny app at
> > #browseURL("https://gist.github.com/4122626";)
> > ## End(Not run)--
> >
> >
> >
> > RESULTS***
> >> source('~/.active-rstudio-document', echo=TRUE)
> > Error in source("~/.active-rstudio-document", echo = TRUE) :
> >   ~/.active-rstudio-document:11:21: unexpected input
> > 10:
> > 11: id <- ConnectTrueFX(�
> >^
> >> sessionInfo()
> > R version 2.15.3 (2013-03-01)
> > Platform: x86_64-pc-linux-gnu (64-bit)
> >
> > locale:
> >  [1] LC_CTYPE=en_US.UTF-8   LC_NUMERIC=C
> > LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8
> >  [5] LC_MONETARY=en_US.UTF-8LC_MESSAGES=en_US.UTF-8LC_PAPER=C
> > LC_NAME=C
> >  [9] LC_ADDRESS=C   LC_TELEPHONE=C
> > LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
> >
> > attached base packages:
> > [1] stats graphics  grDevices utils datasets  methods   base
> >
> > other attached packages:
> >  [1] shiny_0.8.0 TFX_0.1.0   ggplot2_0.9.3.1 xtsExtra_0.0-1
> > tseries_0.10-32 quantmod_0.4-0
> >  [7] TTR_0.21-1  xts_0.9-3   zoo_1.7-9   Defaults_1.1-1
> >
> > loaded via a namespace (and not attached):
> >  [1] bitops_1.0-4.1 caTools_1.13   colorspace_1.2-0
> > dichromat_1.2-4digest_0.5.2
> >  [6] grid_2.15.3gtable_0.1.1   httpuv_1.2.0
> labeling_0.1
> > lattice_0.20-13
> > [11] MASS_7.3-23munsell_0.4plyr_1.7.1
> proto_0.3-9.2
> > quadprog_1.5-5
> > [16] RColorBrewer_1.0-5 Rcpp_0.10.2reshape2_1.2.1
> RJSONIO_1.0-1
> > scales_0.2.3
> > [21] stringr_0.6.1  tools_2.15.3   XML_3.98-1.1
> xtable_1.7-0
> >>
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> http://r.789695.n4.nabble.com/Introducing-TFX-An-R-Interface-to-the-TrueFX-Web-API-tp4651827p4681163.html
> > Sent from the Rmetrics mailing list archive at Nabble.com.
> >
> > ___
> > [hidden email] 
> > mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> > -- Subscriber-posting only. If you want to post, subscribe first.
> > -- Also note that this is not the r-help list where general R questions
> should go.
>
> ___
> [hidden email] mailing 
> list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions
> should go.
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://r.789695.n4.nabble.com/Introducing-TFX-An-R-Interface-to-the-TrueFX-Web-API-tp4651827p4681182.html
>  To unsubscribe from Introducing TFX: An R Interface to the TrueFX Web
> API, click 
> here
> .
> NAML

[R-SIG-Finance] blotter package, can't add new symbol to existing portfolio

2013-11-27 Thread ce
Dear all,

I am following blotter example in the 
http://artax.karlin.mff.cuni.cz/r-help/library/blotter/html/blotter-package.html
I create, initialize , and add transactions. but when it comes to add a new 
stock symbol to  portfolio it gives an error message. Example adds MMM, I get 
Error in if (nrow(PosData) > 1) { : argument is of length zero 

R version 3.0.2 

> library(blotter)
Loading required package: xts
Loading required package: zoo

Attaching package: ‘zoo’

The following objects are masked from ‘package:base’:

as.Date, as.Date.numeric

Loading required package: FinancialInstrument
Loading required package: quantmod
Loading required package: Defaults
Loading required package: TTR
Version 0.4-0 included new data defaults. See ?getSymbols.
Loading required package: PerformanceAnalytics

Package PerformanceAnalytics (1.1.0) loaded.
Econometric tools for performance and risk analysis.
(c) 2004-2012 Peter Carl, Brian G. Peterson. License: GPL
http://r-forge.r-project.org/projects/returnanalytics/


> currency("USD")
[1] "USD"
> symbols = c("IBM","F")
> for(symbol in symbols){ # establish tradable instruments
+ stock(symbol, currency="USD", multiplier=1)
+ }
> 
> # Download price data
> require(quantmod)
> getSymbols(symbols, from='2007-01-01', to='2007-01-31', src='yahoo',
+ index.class=c("POSIXt","POSIXct"))
[1] "IBM" "F"  
> 
> # Initialize a portfolio object 'p'
> print('Creating portfolio \"p\"...')
[1] "Creating portfolio \"p\"..."
> initPortf('p', symbols=symbols, currency="USD")
[1] "p"
> 
> ## Trades must be made in date order.
> print('Adding trades to \"p\"...')
[1] "Adding trades to \"p\"..."
> # Make a couple of trades in IBM
> addTxn(Portfolio = "p", Symbol = "IBM", TxnDate = '2007-01-03', TxnQty = 50, 
+ TxnPrice = 96.5, TxnFees = -0.05*50)
[1] "2007-01-03 00:00:00 IBM 50 @ 96.5"
> addTxn("p", "IBM", '2007-01-04', 50, 97.1, TxnFees = -0.05*50)
[1] "2007-01-04 00:00:00 IBM 50 @ 97.1"
> 
> # ...a few in F...
> addTxn("p", "F", '2007-01-03', -100, 7.60, TxnFees = pennyPerShare(-100))
[1] "2007-01-03 00:00:00 F -100 @ 7.6"
> addTxn("p", "F", '2007-01-04', 50, 7.70, TxnFees = pennyPerShare(50))
[1] "2007-01-04 00:00:00 F 50 @ 7.7"
> addTxn("p", "F", '2007-01-10', 50, 7.78, TxnFees = pennyPerShare(50))
[1] "2007-01-10 00:00:00 F 50 @ 7.78"
> getSymbols("MMM", from='2007-01-01', to='2007-01-31', src='yahoo',
+ index.class=c("POSIXt","POSIXct")) # Download price data
[1] "MMM"
> stock("MMM", currency="USD", multiplier=1) # Add the instrument
[1] "MMM"
> 
> # Now we can add transactions:
> addTxn("p", "MMM", '2007-01-05', -50, 77.9, TxnFees = -0.05*50)
Error in if (nrow(PosData) > 1) { : argument is of length zero

___
R-SIG-Finance@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should 
go.