[R] Problem with RGenoud

2010-04-18 Thread yoda55

I've been using RGenoud for a while and it worked smoothly so far. However I
came across a strange problem lately (for me at least...). 

It fails after the first individual and I get the following error message
when I set MemoryMatrix = FALSE :
Error in genoud(fn, nvars = 8, max = TRUE, pop.size = 10,  : 
  REAL() can only be applied to a 'numeric', not a 'character'

when I set MemoryMatrix = TRUE, it fails after it runs the total number of
individuals in the 1st generation:
Error in population[eval.indx, nvars + 2] = 0 : 
  incorrect number of subscripts on matrix

It sounds like it struggles to write results to an outside source (not sure
this is the appropriate language). I ran many RGenoud based optimization
before based the same set up and I never came across that issue before. I
checked the fn function and it works OK outside RGenoud.
I'm using R 2.10.1 with under Windows Vista and RGenoud version 5.6-6

Any help appreciated

Thanks 
-- 
View this message in context: 
http://n4.nabble.com/Problem-with-RGenoud-tp2014722p2014722.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Problem with RGenoud

2010-04-18 Thread yoda55

Thx. will do
-- 
View this message in context: 
http://n4.nabble.com/Problem-with-RGenoud-tp2014722p2015133.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem with chartSeries

2010-11-14 Thread yoda55

Hi All,

I came across some trouble with this function when trying to plot intraday
data. I can't manage to plot candelsticks I get a line instead and I don't
understand why. I put below data sample and code.

> head(x)
  open   high   low close
2010-10-27 08:59:59 13821 13824 13818 13824
2010-10-27 09:05:00 13823 13830 13823 13830
2010-10-27 09:09:59 13829 13831 13828 13829
2010-10-27 09:15:00 13828 13829 13824 13824
2010-10-27 09:19:59 13825 13826 13817 13817
2010-10-27 09:25:00 13816 13822 13816 13822
2010-10-27 09:30:00 13821 13822 13809 13816
2010-10-27 09:34:59 13816 13816 13811 13815
2010-10-27 09:40:00 13815 13816 13808 13810
2010-10-27 09:44:59 13810 13812 13804 13811

The below code gives me a line chart instead of candlestick. I can't figure
out why???

chartSeries(x,
TA = NULL,
theme = chartTheme('black'),
up.col = 'white',
dn.col = 'tomato',
type = "candlesticks",
name = "EUR",
minor.ticks=FALSE)

the x object seems to have the right attributes (see below)

> class(x)
[1] "xts" "zoo"

> head(index(x))
 [1] "2010-10-27 08:59:59 CEST" "2010-10-27 09:05:00 CEST" "2010-10-27
09:09:59 CEST" "2010-10-27 09:15:00 CEST"
 [5] "2010-10-27 09:19:59 CEST" "2010-10-27 09:25:00 CEST" "2010-10-27
09:30:00 CEST" "2010-10-27 09:34:59 CEST"
 [9] "2010-10-27 09:40:00 CEST" "2010-10-27 09:44:59 CEST"

Did I miss something obvious? 

Any help appreciated Thanks





 

-- 
View this message in context: 
http://r.789695.n4.nabble.com/problem-with-chartSeries-tp3041637p3041637.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] prb with data.table

2011-04-16 Thread yoda55
R.2.11.1 on Windows 7

When running data.table examples.
> DT = data.table(x=rep(c("a","b","c"),each=3), y=c(1,3,6), v=1:9)
> setkey(DT,x)
> DT["a"]
I get the following error message
Erreur dans seq.default(to = xlen, length = n) :
  length must be non-negative number

When running the test.data.table(), pretty much all the tests fail (see
below)
Test 8 Error in seq.default(to = xlen, length = n) :
  length must be non-negative number
Test 9 Error in seq.default(to = xlen, length = n) :
  length must be non-negative number
.

Any help appreciated   

--
View this message in context: 
http://r.789695.n4.nabble.com/prb-with-data-table-tp3454478p3454478.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] prb with data.table

2011-04-17 Thread yoda55
I upgraded to R.2.13.0 and the problem disappeared.

Thx

--
View this message in context: 
http://r.789695.n4.nabble.com/prb-with-data-table-tp3454478p3455103.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Problem installing RBloomberg

2012-06-27 Thread yoda55
I have the following error message when I try to install RBloomberg.

Les packages binaires téléchargés sont dans
C:\Users\bloom\AppData\Local\Temp\RtmpktX4UK\downloaded_packages
Message d'avis :
packages ‘quantstrat’, ‘RBloomberg’, ‘rsproxy’, ‘VaR’ are not available (for
R version 2.15.1)

R version 2.15.1
System : Windows 7 (64 bits)

Any help appreciated

Thx

--
View this message in context: 
http://r.789695.n4.nabble.com/Problem-installing-RBloomberg-tp4634624.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Problem installing RBloomberg

2012-06-30 Thread yoda55
Thx for the info. 
I didn't know the package name changed.

--
View this message in context: 
http://r.789695.n4.nabble.com/Problem-installing-RBloomberg-tp4634624p4634959.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.