[R-SIG-Finance] Does anybody know how to connect to KDB from within R?
Michael
comtech.usa at gmail.com
Fri Sep 25 15:20:05 CEST 2009
Ok. cool. But are they any real-world example to show the synergy from
combining the power of R and KDB?
I couldn't find any...
On Fri, Sep 25, 2009 at 12:10 AM, Daniel Cegielka
<daniel.cegielka at gmail.com> wrote:
> Michael pisze:
>> It doesn't seem to work on my computer:
>>
>> http://127.0.0.1:5000/
>>
>> I am using that trial version on my personal laptop: the one that
>> auto-exits every 2 hours...
>>
>> What might be the problem?
> To connect R into kdb you must set port:
>
> start q with "-p port" parametr:
> q -p 5000
>
> or from q console:
>
> \q 5000
>
>
> and set this port in R session:
>
> con <- .Call("kx_r_open_connection",list(host="localhost",as.integer(port=5000),user=NULL))
>
>
> and you can connect R (or web browser) to kdb.
>
>
> best,
> daniel
>
More information about the R-SIG-Finance
mailing list