Re: [Rcom-l] Advice on using .NET with R(COM)

2008-12-02 Thread Edmond Lezmi

Hi Qiao,

Please could you also mail me your c# source code as well?   
Thanks a lot,

Edmond



___
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at


RE: [Rcom-l] Advice on using .NET with R(COM)

2008-12-02 Thread Linnecar, Ben (IM)
Sorry - should have said my mail address.

Please mail the source code to [EMAIL PROTECTED]

Thanks a lot,

Ben.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Linnecar,
Ben (IM)
Sent: 02 December 2008 14:35
To: R (D)COM and RExcel server related issues
Subject: RE: [Rcom-l] Advice on using .NET with R(COM) 

Hi Qiao,

Please could you mail me your c# source code as well?  It would be very
useful to me.

Thanks a lot,

Ben. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Qiao
Hui-jie
Sent: 02 December 2008 01:13
To: 'R (D)COM and RExcel server related issues'
Subject: RE: [Rcom-l] Advice on using .NET with R(COM) 

hi Alex:

I have made a project written by c#. It can run R in a winform. I have
mapped most of the basic objects in R to c# objects. May be it a
valuable project for you.

It's pity that a have no enought time to finish it. But i can provide
all the source code to you. 

Give me an email address if you want this.

Best regards

Qiao Huijie
Institute of Zoology, Chinese Academy of Sciences
2008-12-2

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Park
Sent: Monday, December 01, 2008 1:59 AM
To: rcom-l@mailman.csd.univie.ac.at
Subject: [Rcom-l] Advice on using .NET with R(COM) 

Hello

I would like to get some simple advice on building a .NET application
that uses R for statistical calculations and displays charts using R
graphical packages. Please understand that I am a neophyte programmer
and maybe behind the curve on a number of programming issues...

I am most familiar with Visual Basic and my intention is to make a
desktop application. I have a lot of time series data (financial market
data) and my intention is to place it all in a database and use ADO.Net
to retrieve data and then manipulate in R (stats, create data tables,
produce charts) and then display in my VB.NET application front end.

As an example, I may want my application to be able to display the %
return of all global equity markets in the past week, and to show this
as a data table that is accompanied by a simple bar chart that is sorted
by best performing index first.

Before I start writing any code for this I had a handful of questions:

1) Is using Visual Basic the best choice or are there significant
advantages of using C# or C++ within .NET? For example, are there
performance advantages of using C++ over VB when it comes to processing
large amounts of data, and especially if there are lots of loops
involved etc? What do people think?

2) In my mind, I was thinking that I could place my data in the database
that comes with .NET, use ADO to retrieve the data I required, and then
pass this to R to get the desired output. I am wondering though whether
it would be better to build lots or routines in R and let them call the
data from the directly from the database i.e. I just use VB front end to
execute pre-configured routine in R which will automatically use SQL
functionality to retrieve the required data? Again, any thoughts on
this?

3) I have managed to poke around the internet (R.org, Nabble etc.) and
have managed to get together some introductory papers on using R(COM)
with .NET.
Is there an 'official' guide that I am missing or can anybody point to
any useful sources that might help me get started?

I appreciate any time anybody can spare to give me some help. Before I
get started I want to avoid going down a blind alley and am more than
prepared to have to upskill significantly (e.g. gain a better grasp of
C++) if that will give enable me to build much better applications in
terms of functionality and performance. I just want some advice before I
invest in some books and get cracking.

Thanks again

Alex


___
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at


___
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at


NOTICE: If received in error, please destroy and notify sender. Sender
does not intend to waive confidentiality or privilege. Use of this email
is prohibited when received in error.
___
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at


NOTICE: If received in error, please destroy and notify sender. Sender does not 
intend to waive confidentiality or privilege. Use of this email is prohibited 
when received in error.
_

RE: [Rcom-l] Advice on using .NET with R(COM)

2008-12-02 Thread Linnecar, Ben (IM)
Hi Qiao,

Please could you mail me your c# source code as well?  It would be very
useful to me.

Thanks a lot,

Ben. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Qiao
Hui-jie
Sent: 02 December 2008 01:13
To: 'R (D)COM and RExcel server related issues'
Subject: RE: [Rcom-l] Advice on using .NET with R(COM) 

hi Alex:

I have made a project written by c#. It can run R in a winform. I have
mapped most of the basic objects in R to c# objects. May be it a
valuable project for you.

It's pity that a have no enought time to finish it. But i can provide
all the source code to you. 

Give me an email address if you want this.

Best regards

Qiao Huijie
Institute of Zoology, Chinese Academy of Sciences
2008-12-2

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Park
Sent: Monday, December 01, 2008 1:59 AM
To: rcom-l@mailman.csd.univie.ac.at
Subject: [Rcom-l] Advice on using .NET with R(COM) 

Hello

I would like to get some simple advice on building a .NET application
that uses R for statistical calculations and displays charts using R
graphical packages. Please understand that I am a neophyte programmer
and maybe behind the curve on a number of programming issues...

I am most familiar with Visual Basic and my intention is to make a
desktop application. I have a lot of time series data (financial market
data) and my intention is to place it all in a database and use ADO.Net
to retrieve data and then manipulate in R (stats, create data tables,
produce charts) and then display in my VB.NET application front end.

As an example, I may want my application to be able to display the %
return of all global equity markets in the past week, and to show this
as a data table that is accompanied by a simple bar chart that is sorted
by best performing index first.

Before I start writing any code for this I had a handful of questions:

1) Is using Visual Basic the best choice or are there significant
advantages of using C# or C++ within .NET? For example, are there
performance advantages of using C++ over VB when it comes to processing
large amounts of data, and especially if there are lots of loops
involved etc? What do people think?

2) In my mind, I was thinking that I could place my data in the database
that comes with .NET, use ADO to retrieve the data I required, and then
pass this to R to get the desired output. I am wondering though whether
it would be better to build lots or routines in R and let them call the
data from the directly from the database i.e. I just use VB front end to
execute pre-configured routine in R which will automatically use SQL
functionality to retrieve the required data? Again, any thoughts on
this?

3) I have managed to poke around the internet (R.org, Nabble etc.) and
have managed to get together some introductory papers on using R(COM)
with .NET.
Is there an 'official' guide that I am missing or can anybody point to
any useful sources that might help me get started?

I appreciate any time anybody can spare to give me some help. Before I
get started I want to avoid going down a blind alley and am more than
prepared to have to upskill significantly (e.g. gain a better grasp of
C++) if that will give enable me to build much better applications in
terms of functionality and performance. I just want some advice before I
invest in some books and get cracking.

Thanks again

Alex


___
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at


___
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at


NOTICE: If received in error, please destroy and notify sender. Sender does not 
intend to waive confidentiality or privilege. Use of this email is prohibited 
when received in error.
___
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at


Re: [Rcom-l] Advice on using .NET with R(COM)

2008-12-01 Thread Erich Neuwirth
Can you export it to an ASCII file and send it to me?
Then I will try to put it into the Wiki.
I will mark it as unfinished.


Qiao Hui-jie wrote:
> I'd like to do this.
> 
> But the code is an unfinished version. And I have no time to finish it
> recently.
> 
> How to give you the code?
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Erich Neuwirth
> Sent: Tuesday, December 02, 2008 3:17 PM
> To: R (D)COM and RExcel server related issues
> Subject: Re: [Rcom-l] Advice on using .NET with R(COM)
> 
> Can you please give us the source code,
> or can you put it in our Wiki at rcom.univie.ac.at?
> 
> 
> Biresh Giri wrote:
>> Qiao
>>  
>> I would like to see the source code as well. Could you please forward 
>> to [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>>  
>> Thanks
>> Biresh
>>
>> On Tue, Dec 2, 2008 at 6:43 AM, Qiao Hui-jie <[EMAIL PROTECTED] 
>> <mailto:[EMAIL PROTECTED]>> wrote:
>>
>> hi Alex:
>>
>> I have made a project written by c#. It can run R in a winform. I have
>> mapped most of the basic objects in R to c# objects. May be it a
>> valuable
>> project for you.
>>
>> It's pity that a have no enought time to finish it. But i can
>> provide all
>> the source code to you.
>>
>> Give me an email address if you want this.
>>
>> Best regards
>>
>> Qiao Huijie
>> Institute of Zoology, Chinese Academy of Sciences
>> 2008-12-2
>>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>
>> [mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>] On Behalf Of Alex
> Park
>> Sent: Monday, December 01, 2008 1:59 AM
>> To: rcom-l@mailman.csd.univie.ac.at
>> <mailto:rcom-l@mailman.csd.univie.ac.at>
>> Subject: [Rcom-l] Advice on using .NET with R(COM)
>>
>> Hello
>>
>> I would like to get some simple advice on building a .NET
>> application that
>> uses R for statistical calculations and displays charts using R
>> graphical
>> packages. Please understand that I am a neophyte programmer and
>> maybe behind
>> the curve on a number of programming issues...
>>
>> I am most familiar with Visual Basic and my intention is to make a
>> desktop
>> application. I have a lot of time series data (financial market
>> data) and my
>> intention is to place it all in a database and use ADO.Net to
>> retrieve data
>> and then manipulate in R (stats, create data tables, produce charts)
> and
>> then display in my VB.NET <http://vb.net/> application front end.
>>
>> As an example, I may want my application to be able to display the %
>> return
>> of all global equity markets in the past week, and to show this as a
>> data
>> table that is accompanied by a simple bar chart that is sorted by best
>> performing index first.
>>
>> Before I start writing any code for this I had a handful of questions:
>>
>> 1) Is using Visual Basic the best choice or are there significant
>> advantages
>> of using C# or C++ within .NET? For example, are there performance
>> advantages of using C++ over VB when it comes to processing large
>> amounts of
>> data, and especially if there are lots of loops involved etc? What
>> do people
>> think?
>>
>> 2) In my mind, I was thinking that I could place my data in the
> database
>> that comes with .NET, use ADO to retrieve the data I required, and
>> then pass
>> this to R to get the desired output. I am wondering though whether
>> it would
>> be better to build lots or routines in R and let them call the data
>> from the
>> directly from the database i.e. I just use VB front end to execute
>> pre-configured routine in R which will automatically use SQL
>> functionality
>> to retrieve the required data? Again, any thoughts on this?
>>
>> 3) I have managed to poke around the internet (R.org, Nabble etc.)
>> and have
>> managed to get together some introductory papers on using R(COM)
>> with .NET.
>> Is there an 'official' guide that I am missing or can anybody point
>> to any
>> useful sources that might help me get started?
>>
>> I appreci

RE: [Rcom-l] Advice on using .NET with R(COM)

2008-12-01 Thread Qiao Hui-jie
I'd like to do this.

But the code is an unfinished version. And I have no time to finish it
recently.

How to give you the code?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Erich Neuwirth
Sent: Tuesday, December 02, 2008 3:17 PM
To: R (D)COM and RExcel server related issues
Subject: Re: [Rcom-l] Advice on using .NET with R(COM)

Can you please give us the source code,
or can you put it in our Wiki at rcom.univie.ac.at?


Biresh Giri wrote:
> Qiao
>  
> I would like to see the source code as well. Could you please forward 
> to [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>  
> Thanks
> Biresh
> 
> On Tue, Dec 2, 2008 at 6:43 AM, Qiao Hui-jie <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
> hi Alex:
> 
> I have made a project written by c#. It can run R in a winform. I have
> mapped most of the basic objects in R to c# objects. May be it a
> valuable
> project for you.
> 
> It's pity that a have no enought time to finish it. But i can
> provide all
> the source code to you.
> 
> Give me an email address if you want this.
> 
> Best regards
> 
> Qiao Huijie
> Institute of Zoology, Chinese Academy of Sciences
> 2008-12-2
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> [mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>] On Behalf Of Alex
Park
> Sent: Monday, December 01, 2008 1:59 AM
> To: rcom-l@mailman.csd.univie.ac.at
> <mailto:rcom-l@mailman.csd.univie.ac.at>
> Subject: [Rcom-l] Advice on using .NET with R(COM)
> 
> Hello
> 
> I would like to get some simple advice on building a .NET
> application that
> uses R for statistical calculations and displays charts using R
> graphical
> packages. Please understand that I am a neophyte programmer and
> maybe behind
> the curve on a number of programming issues...
> 
> I am most familiar with Visual Basic and my intention is to make a
> desktop
> application. I have a lot of time series data (financial market
> data) and my
> intention is to place it all in a database and use ADO.Net to
> retrieve data
> and then manipulate in R (stats, create data tables, produce charts)
and
> then display in my VB.NET <http://vb.net/> application front end.
> 
> As an example, I may want my application to be able to display the %
> return
> of all global equity markets in the past week, and to show this as a
> data
> table that is accompanied by a simple bar chart that is sorted by best
> performing index first.
> 
> Before I start writing any code for this I had a handful of questions:
> 
> 1) Is using Visual Basic the best choice or are there significant
> advantages
> of using C# or C++ within .NET? For example, are there performance
> advantages of using C++ over VB when it comes to processing large
> amounts of
> data, and especially if there are lots of loops involved etc? What
> do people
> think?
> 
> 2) In my mind, I was thinking that I could place my data in the
database
> that comes with .NET, use ADO to retrieve the data I required, and
> then pass
> this to R to get the desired output. I am wondering though whether
> it would
> be better to build lots or routines in R and let them call the data
> from the
> directly from the database i.e. I just use VB front end to execute
> pre-configured routine in R which will automatically use SQL
> functionality
> to retrieve the required data? Again, any thoughts on this?
> 
> 3) I have managed to poke around the internet (R.org, Nabble etc.)
> and have
> managed to get together some introductory papers on using R(COM)
> with .NET.
> Is there an 'official' guide that I am missing or can anybody point
> to any
> useful sources that might help me get started?
> 
> I appreciate any time anybody can spare to give me some help. Before
> I get
> started I want to avoid going down a blind alley and am more than
> prepared
> to have to upskill significantly (e.g. gain a better grasp of C++)
> if that
> will give enable me to build much better applications in terms of
> functionality and performance. I just want some advice before I
> invest in
> some books and get cracking.
> 
> Thanks again
> 
> Alex
> 
> 
> ___
> Rcom-l mailing list
> Rcom

Re: [Rcom-l] Advice on using .NET with R(COM)

2008-12-01 Thread Erich Neuwirth
Can you please give us the source code,
or can you put it in our Wiki at rcom.univie.ac.at?


Biresh Giri wrote:
> Qiao
>  
> I would like to see the source code as well. Could you please forward to
> [EMAIL PROTECTED] 
>  
> Thanks
> Biresh
> 
> On Tue, Dec 2, 2008 at 6:43 AM, Qiao Hui-jie <[EMAIL PROTECTED]
> > wrote:
> 
> hi Alex:
> 
> I have made a project written by c#. It can run R in a winform. I have
> mapped most of the basic objects in R to c# objects. May be it a
> valuable
> project for you.
> 
> It's pity that a have no enought time to finish it. But i can
> provide all
> the source code to you.
> 
> Give me an email address if you want this.
> 
> Best regards
> 
> Qiao Huijie
> Institute of Zoology, Chinese Academy of Sciences
> 2008-12-2
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> 
> [mailto:[EMAIL PROTECTED]
> ] On Behalf Of Alex Park
> Sent: Monday, December 01, 2008 1:59 AM
> To: rcom-l@mailman.csd.univie.ac.at
> 
> Subject: [Rcom-l] Advice on using .NET with R(COM)
> 
> Hello
> 
> I would like to get some simple advice on building a .NET
> application that
> uses R for statistical calculations and displays charts using R
> graphical
> packages. Please understand that I am a neophyte programmer and
> maybe behind
> the curve on a number of programming issues...
> 
> I am most familiar with Visual Basic and my intention is to make a
> desktop
> application. I have a lot of time series data (financial market
> data) and my
> intention is to place it all in a database and use ADO.Net to
> retrieve data
> and then manipulate in R (stats, create data tables, produce charts) and
> then display in my VB.NET  application front end.
> 
> As an example, I may want my application to be able to display the %
> return
> of all global equity markets in the past week, and to show this as a
> data
> table that is accompanied by a simple bar chart that is sorted by best
> performing index first.
> 
> Before I start writing any code for this I had a handful of questions:
> 
> 1) Is using Visual Basic the best choice or are there significant
> advantages
> of using C# or C++ within .NET? For example, are there performance
> advantages of using C++ over VB when it comes to processing large
> amounts of
> data, and especially if there are lots of loops involved etc? What
> do people
> think?
> 
> 2) In my mind, I was thinking that I could place my data in the database
> that comes with .NET, use ADO to retrieve the data I required, and
> then pass
> this to R to get the desired output. I am wondering though whether
> it would
> be better to build lots or routines in R and let them call the data
> from the
> directly from the database i.e. I just use VB front end to execute
> pre-configured routine in R which will automatically use SQL
> functionality
> to retrieve the required data? Again, any thoughts on this?
> 
> 3) I have managed to poke around the internet (R.org, Nabble etc.)
> and have
> managed to get together some introductory papers on using R(COM)
> with .NET.
> Is there an 'official' guide that I am missing or can anybody point
> to any
> useful sources that might help me get started?
> 
> I appreciate any time anybody can spare to give me some help. Before
> I get
> started I want to avoid going down a blind alley and am more than
> prepared
> to have to upskill significantly (e.g. gain a better grasp of C++)
> if that
> will give enable me to build much better applications in terms of
> functionality and performance. I just want some advice before I
> invest in
> some books and get cracking.
> 
> Thanks again
> 
> Alex
> 
> 
> ___
> Rcom-l mailing list
> Rcom-l@mailman.csd.univie.ac.at 
> http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
> More information (including a Wiki) at http://rcom.univie.ac.at
> 
> 
> 
> ___
> Rcom-l mailing list
> Rcom-l@mailman.csd.univie.ac.at 
> http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
> More information (including a Wiki) at http://rcom.univie.ac.at
> 
> 
> 
> 
> 
> 
> ___
> Rcom-l mailing list
> Rcom-l@mailman.csd.univie.ac.at
> http://mailman.csd.univie.ac.at/mailma

Re: [Rcom-l] Advice on using .NET with R(COM)

2008-12-01 Thread Biresh Giri
Qiao

I would like to see the source code as well. Could you please forward to
[EMAIL PROTECTED]

Thanks
Biresh

On Tue, Dec 2, 2008 at 6:43 AM, Qiao Hui-jie <[EMAIL PROTECTED]> wrote:

> hi Alex:
>
> I have made a project written by c#. It can run R in a winform. I have
> mapped most of the basic objects in R to c# objects. May be it a valuable
> project for you.
>
> It's pity that a have no enought time to finish it. But i can provide all
> the source code to you.
>
> Give me an email address if you want this.
>
> Best regards
>
> Qiao Huijie
> Institute of Zoology, Chinese Academy of Sciences
> 2008-12-2
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Alex Park
> Sent: Monday, December 01, 2008 1:59 AM
> To: rcom-l@mailman.csd.univie.ac.at
> Subject: [Rcom-l] Advice on using .NET with R(COM)
>
> Hello
>
> I would like to get some simple advice on building a .NET application that
> uses R for statistical calculations and displays charts using R graphical
> packages. Please understand that I am a neophyte programmer and maybe
> behind
> the curve on a number of programming issues...
>
> I am most familiar with Visual Basic and my intention is to make a desktop
> application. I have a lot of time series data (financial market data) and
> my
> intention is to place it all in a database and use ADO.Net to retrieve data
> and then manipulate in R (stats, create data tables, produce charts) and
> then display in my VB.NET  application front end.
>
> As an example, I may want my application to be able to display the % return
> of all global equity markets in the past week, and to show this as a data
> table that is accompanied by a simple bar chart that is sorted by best
> performing index first.
>
> Before I start writing any code for this I had a handful of questions:
>
> 1) Is using Visual Basic the best choice or are there significant
> advantages
> of using C# or C++ within .NET? For example, are there performance
> advantages of using C++ over VB when it comes to processing large amounts
> of
> data, and especially if there are lots of loops involved etc? What do
> people
> think?
>
> 2) In my mind, I was thinking that I could place my data in the database
> that comes with .NET, use ADO to retrieve the data I required, and then
> pass
> this to R to get the desired output. I am wondering though whether it would
> be better to build lots or routines in R and let them call the data from
> the
> directly from the database i.e. I just use VB front end to execute
> pre-configured routine in R which will automatically use SQL functionality
> to retrieve the required data? Again, any thoughts on this?
>
> 3) I have managed to poke around the internet (R.org, Nabble etc.) and have
> managed to get together some introductory papers on using R(COM) with .NET.
> Is there an 'official' guide that I am missing or can anybody point to any
> useful sources that might help me get started?
>
> I appreciate any time anybody can spare to give me some help. Before I get
> started I want to avoid going down a blind alley and am more than prepared
> to have to upskill significantly (e.g. gain a better grasp of C++) if that
> will give enable me to build much better applications in terms of
> functionality and performance. I just want some advice before I invest in
> some books and get cracking.
>
> Thanks again
>
> Alex
>
>
> ___
> Rcom-l mailing list
> Rcom-l@mailman.csd.univie.ac.at
> http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
> More information (including a Wiki) at http://rcom.univie.ac.at
>
>
> ___
> Rcom-l mailing list
> Rcom-l@mailman.csd.univie.ac.at
> http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
> More information (including a Wiki) at http://rcom.univie.ac.at
>
___
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at

Re: [Rcom-l] Advice on using .NET with R(COM)

2008-12-01 Thread Michael Sumner

Hi Qiao,

I would like to see this project as well - could you provide it to me? 
Thanks very much!


Regards, Mike.

Qiao Hui-jie wrote:

hi Alex:

I have made a project written by c#. It can run R in a winform. I have
mapped most of the basic objects in R to c# objects. May be it a valuable
project for you.

It's pity that a have no enought time to finish it. But i can provide all
the source code to you. 


Give me an email address if you want this.

Best regards

Qiao Huijie 
Institute of Zoology, Chinese Academy of Sciences

2008-12-2

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Park
Sent: Monday, December 01, 2008 1:59 AM
To: rcom-l@mailman.csd.univie.ac.at
Subject: [Rcom-l] Advice on using .NET with R(COM) 


Hello

I would like to get some simple advice on building a .NET application that
uses R for statistical calculations and displays charts using R graphical
packages. Please understand that I am a neophyte programmer and maybe behind
the curve on a number of programming issues...

I am most familiar with Visual Basic and my intention is to make a desktop
application. I have a lot of time series data (financial market data) and my
intention is to place it all in a database and use ADO.Net to retrieve data
and then manipulate in R (stats, create data tables, produce charts) and
then display in my VB.NET application front end.

As an example, I may want my application to be able to display the % return
of all global equity markets in the past week, and to show this as a data
table that is accompanied by a simple bar chart that is sorted by best
performing index first.

Before I start writing any code for this I had a handful of questions:

1) Is using Visual Basic the best choice or are there significant advantages
of using C# or C++ within .NET? For example, are there performance
advantages of using C++ over VB when it comes to processing large amounts of
data, and especially if there are lots of loops involved etc? What do people
think?

2) In my mind, I was thinking that I could place my data in the database
that comes with .NET, use ADO to retrieve the data I required, and then pass
this to R to get the desired output. I am wondering though whether it would
be better to build lots or routines in R and let them call the data from the
directly from the database i.e. I just use VB front end to execute
pre-configured routine in R which will automatically use SQL functionality
to retrieve the required data? Again, any thoughts on this?

3) I have managed to poke around the internet (R.org, Nabble etc.) and have
managed to get together some introductory papers on using R(COM) with .NET.
Is there an 'official' guide that I am missing or can anybody point to any
useful sources that might help me get started?

I appreciate any time anybody can spare to give me some help. Before I get
started I want to avoid going down a blind alley and am more than prepared
to have to upskill significantly (e.g. gain a better grasp of C++) if that
will give enable me to build much better applications in terms of
functionality and performance. I just want some advice before I invest in
some books and get cracking.

Thanks again

Alex


___
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at


___
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at
  




No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.9.12/1823 - Release Date: 12/1/2008 7:59 PM


  


___
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at


RE: [Rcom-l] Advice on using .NET with R(COM)

2008-12-01 Thread andrew sacher

I was love this.  Could you me the source code.

> From: [EMAIL PROTECTED]
> To: rcom-l@mailman.csd.univie.ac.at
> Subject: RE: [Rcom-l] Advice on using .NET with R(COM) 
> Date: Tue, 2 Dec 2008 09:13:16 +0800
> 
> hi Alex:
> 
> I have made a project written by c#. It can run R in a winform. I have
> mapped most of the basic objects in R to c# objects. May be it a valuable
> project for you.
> 
> It's pity that a have no enought time to finish it. But i can provide all
> the source code to you. 
> 
> Give me an email address if you want this.
> 
> Best regards
> 
> Qiao Huijie 
> Institute of Zoology, Chinese Academy of Sciences
> 2008-12-2
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Alex Park
> Sent: Monday, December 01, 2008 1:59 AM
> To: rcom-l@mailman.csd.univie.ac.at
> Subject: [Rcom-l] Advice on using .NET with R(COM) 
> 
> Hello
> 
> I would like to get some simple advice on building a .NET application that
> uses R for statistical calculations and displays charts using R graphical
> packages. Please understand that I am a neophyte programmer and maybe behind
> the curve on a number of programming issues...
> 
> I am most familiar with Visual Basic and my intention is to make a desktop
> application. I have a lot of time series data (financial market data) and my
> intention is to place it all in a database and use ADO.Net to retrieve data
> and then manipulate in R (stats, create data tables, produce charts) and
> then display in my VB.NET application front end.
> 
> As an example, I may want my application to be able to display the % return
> of all global equity markets in the past week, and to show this as a data
> table that is accompanied by a simple bar chart that is sorted by best
> performing index first.
> 
> Before I start writing any code for this I had a handful of questions:
> 
> 1) Is using Visual Basic the best choice or are there significant advantages
> of using C# or C++ within .NET? For example, are there performance
> advantages of using C++ over VB when it comes to processing large amounts of
> data, and especially if there are lots of loops involved etc? What do people
> think?
> 
> 2) In my mind, I was thinking that I could place my data in the database
> that comes with .NET, use ADO to retrieve the data I required, and then pass
> this to R to get the desired output. I am wondering though whether it would
> be better to build lots or routines in R and let them call the data from the
> directly from the database i.e. I just use VB front end to execute
> pre-configured routine in R which will automatically use SQL functionality
> to retrieve the required data? Again, any thoughts on this?
> 
> 3) I have managed to poke around the internet (R.org, Nabble etc.) and have
> managed to get together some introductory papers on using R(COM) with .NET.
> Is there an 'official' guide that I am missing or can anybody point to any
> useful sources that might help me get started?
> 
> I appreciate any time anybody can spare to give me some help. Before I get
> started I want to avoid going down a blind alley and am more than prepared
> to have to upskill significantly (e.g. gain a better grasp of C++) if that
> will give enable me to build much better applications in terms of
> functionality and performance. I just want some advice before I invest in
> some books and get cracking.
> 
> Thanks again
> 
> Alex
> 
> 
> ___
> Rcom-l mailing list
> Rcom-l@mailman.csd.univie.ac.at
> http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
> More information (including a Wiki) at http://rcom.univie.ac.at
> 
> 
> ___
> Rcom-l mailing list
> Rcom-l@mailman.csd.univie.ac.at
> http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
> More information (including a Wiki) at http://rcom.univie.ac.at

_
Access your email online and on the go with Windows Live Hotmail.
http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_access_112008___
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at

RE: [Rcom-l] Advice on using .NET with R(COM)

2008-12-01 Thread Qiao Hui-jie
hi Alex:

I have made a project written by c#. It can run R in a winform. I have
mapped most of the basic objects in R to c# objects. May be it a valuable
project for you.

It's pity that a have no enought time to finish it. But i can provide all
the source code to you. 

Give me an email address if you want this.

Best regards

Qiao Huijie 
Institute of Zoology, Chinese Academy of Sciences
2008-12-2

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Park
Sent: Monday, December 01, 2008 1:59 AM
To: rcom-l@mailman.csd.univie.ac.at
Subject: [Rcom-l] Advice on using .NET with R(COM) 

Hello

I would like to get some simple advice on building a .NET application that
uses R for statistical calculations and displays charts using R graphical
packages. Please understand that I am a neophyte programmer and maybe behind
the curve on a number of programming issues...

I am most familiar with Visual Basic and my intention is to make a desktop
application. I have a lot of time series data (financial market data) and my
intention is to place it all in a database and use ADO.Net to retrieve data
and then manipulate in R (stats, create data tables, produce charts) and
then display in my VB.NET application front end.

As an example, I may want my application to be able to display the % return
of all global equity markets in the past week, and to show this as a data
table that is accompanied by a simple bar chart that is sorted by best
performing index first.

Before I start writing any code for this I had a handful of questions:

1) Is using Visual Basic the best choice or are there significant advantages
of using C# or C++ within .NET? For example, are there performance
advantages of using C++ over VB when it comes to processing large amounts of
data, and especially if there are lots of loops involved etc? What do people
think?

2) In my mind, I was thinking that I could place my data in the database
that comes with .NET, use ADO to retrieve the data I required, and then pass
this to R to get the desired output. I am wondering though whether it would
be better to build lots or routines in R and let them call the data from the
directly from the database i.e. I just use VB front end to execute
pre-configured routine in R which will automatically use SQL functionality
to retrieve the required data? Again, any thoughts on this?

3) I have managed to poke around the internet (R.org, Nabble etc.) and have
managed to get together some introductory papers on using R(COM) with .NET.
Is there an 'official' guide that I am missing or can anybody point to any
useful sources that might help me get started?

I appreciate any time anybody can spare to give me some help. Before I get
started I want to avoid going down a blind alley and am more than prepared
to have to upskill significantly (e.g. gain a better grasp of C++) if that
will give enable me to build much better applications in terms of
functionality and performance. I just want some advice before I invest in
some books and get cracking.

Thanks again

Alex


___
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at


___
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at


Re: [Rcom-l] Advice on using .NET with R(COM)

2008-12-01 Thread Thomas Baier

Alex,

Alex Park schrieb:

1) Is using Visual Basic the best choice or are there significant advantages
of using C# or C++ within .NET? For example, are there performance
advantages of using C++ over VB when it comes to processing large amounts of
data, and especially if there are lots of loops involved etc? What do people
think?


It depends. For performance reasons, C++ will have advantages if you're 
doing _real_ and optimized C++, otherwise C# or VB.NET will perform the 
same (or even better).


Depending on what "large amounts of data" means for you, it would be a 
better choice to load the data from the database directly in R, but I'm 
not sure, if this will give you better results (has anybody tested this?)


Transfer of data using C++, C# or VB.NET should be fast enough. We've 
successfully transferred arrays with thousands of elements in an 
interactive program and have not yet experienced problems there.


Concerning languages in general, I'd recommend using C#, as VB.NET is 
similar to VB(6), but not the same. And switching back to VB6 for some 
apps could cause problems, as you're then suited to VB.NET.




2) In my mind, I was thinking that I could place my data in the database
that comes with .NET, use ADO to retrieve the data I required, and then pass
this to R to get the desired output. I am wondering though whether it would
be better to build lots or routines in R and let them call the data from the
directly from the database i.e. I just use VB front end to execute
pre-configured routine in R which will automatically use SQL functionality
to retrieve the required data? Again, any thoughts on this?


I've not yet done tests, but in theory loading the data directly from 
within R should be faster. But this of course depends on the database 
frontend in R. ADO.NET is said to be quite fast and data transfer from 
an application to R should be fast enough. Maybe you should give ADO.NET 
a try (as it allows easy and fast prototyping) and just find out if the 
performance is good enough for you.




3) I have managed to poke around the internet (R.org, Nabble etc.) and have
managed to get together some introductory papers on using R(COM) with .NET.
Is there an 'official' guide that I am missing or can anybody point to any
useful sources that might help me get started?


Look into the WIKI at rcom.univie.ac.at. You will find slides from a 
presentation on UseR!2006 with some examples on .NET.



Thomas
___
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at