Re: [R] Object oriented programming in R.

2010-09-15 Thread Yvonnick Noel
I think you should have a look at the 'proto' package on CRAN. Yvonnick Noel University of Brittany, Rennes France __ 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.or

Re: [R] Object oriented programming in R.

2010-09-14 Thread jim holtman
o is to address the number 5 of the fred[1] $happy value. > I tried something like fred[1][5] fred[1,5] > but it didn't work > > I would like to thank you in advance for your help > > Best Regards > Alex > > > > > > From: Denn

Re: [R] Object oriented programming in R.

2010-09-14 Thread David Winsemius
value. I tried something like fred[1][5] fred[1,5] but it didn't work Almost: > fred[[1]][5] [1] 5 I would like to thank you in advance for your help Best Regards Alex ________ From: Dennis Murphy Cc: Rhelp Sent: Tue, September 14, 2010 3:13:37 PM Subjec

Re: [R] Object oriented programming in R.

2010-09-14 Thread Alaios
p Sent: Tue, September 14, 2010 3:13:37 PM Subject: Re: [R] Object oriented programming in R. Hi: You could create a list of lists, where the outer list would be between agents and the inner list within agents. The inner list could have the 'matrices and one list' as separate componen

Re: [R] Object oriented programming in R.

2010-09-14 Thread Dennis Murphy
_ > From: jim holtman > > Cc: Tal Galili ; Rhelp > Sent: Tue, September 14, 2010 1:40:37 PM > Subject: Re: [R] Object oriented programming in R. > > It depends on what you mean by objects. If you are just looking at > creating many named variables that are

Re: [R] Object oriented programming in R.

2010-09-14 Thread Alaios
containing as many objects as the agents are. I would like to thank you in advance for your help Best Regards Alex From: jim holtman Cc: Tal Galili ; Rhelp Sent: Tue, September 14, 2010 1:40:37 PM Subject: Re: [R] Object oriented programming in R. It depends on what

Re: [R] Object oriented programming in R.

2010-09-14 Thread jim holtman
p me > with that? > > Best Regards > Alex > > > > > > From: Tal Galili > > Cc: Rhelp > Sent: Tue, September 14, 2010 10:11:36 AM > Subject: Re: [R] Object oriented programming in R. > > > Hello Alaios, > I see a b

Re: [R] Object oriented programming in R.

2010-09-14 Thread Michael Bedward
Hello, I think you will have to specify your requirements (or at least area of interest) in much greater detail to get any very meaningful input from people here. Meanwhile there are countless examples of object-oriented programming using R on the web complete with code. Michael On 14 September

Re: [R] Object oriented programming in R.

2010-09-14 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14/09/10 13:51, Liviu Andronic wrote: > On Tue, Sep 14, 2010 at 12:55 PM, Alaios wrote: >> Thank you very much. I checked the tutorials that on that list but still I do >> not know how to create many objects of the same type. Can you please help me

Re: [R] Object oriented programming in R.

2010-09-14 Thread Liviu Andronic
On Tue, Sep 14, 2010 at 12:55 PM, Alaios wrote: > Thank you very much. I checked the tutorials that on that list but still I do > not know how to create many objects of the same type. Can you please help me > with that? > Is this what you need? for(i in 1:100){ assign(paste('tmp', i, sep='

Re: [R] Object oriented programming in R.

2010-09-14 Thread Alaios
Subject: Re: [R] Object oriented programming in R. Hello Alaios, I see a bunch of good materials here: http://www.google.co.il/search?sourceid=chrome&ie=UTF-8&q=Object+oriented+programming+in+R Did you look into them ? Contact

Re: [R] Object oriented programming in R.

2010-09-14 Thread Tal Galili
Hello Alaios, I see a bunch of good materials here: http://www.google.co.il/search?sourceid=chrome&ie=UTF-8&q=Object+oriented+programming+in+R Did you look into them ? Contact Details:-

[R] Object oriented programming in R.

2010-09-14 Thread Alaios
Hello everyone. I would like to create many objects with R. Does R support objects? The number of objects needed is not predetermined and it is a parameter specified by the user. If the user selects to create many objects like 100, would it be possible to handle each one by some index? I would

Re: [R] Object-oriented programming in R

2009-05-28 Thread Gabor Grothendieck
p.plot is an S3 object and you are attempting to define an S4 class so you if you really want to do that then you would need this to let S4 know about the ggplot class: # S4 class with S3 slot setClass("ggplot") # make ggplot visible to S4 setClass("AClass", representation(mFirst = "numeric", mSe

Re: [R] Object-oriented programming in R

2009-05-28 Thread Mark Wardle
Hi. I remember considering these options myself but concluded that for most analyses a strictly procedural approach was satisfactory. Although I may re-run multiple analyses, the data manipulation (and subsequent analysis - the former always more complex than the latter IMHO) is fairly project- and

[R] Object-oriented programming in R

2009-05-27 Thread Luc Villandre
Dear R-users, I have very recently started learning about object-oriented programming in R. I am far from being an expert in programming, although I do have an elementary C++ background. Please take a look at these lines of code. some.data = data.frame(V1 = 1:5, V2 = 6:10) ; p.plot = ggplot(

Re: [R] Object-oriented programming in R for Java programmers?

2008-07-27 Thread Stephen Tucker
al Message From: Johannes Huesing <[EMAIL PROTECTED]> To: r-help@r-project.org Sent: Sunday, July 27, 2008 12:21:37 PM Subject: Re: [R] Object-oriented programming in R for Java programmers? Werner Wernersen <[EMAIL PROTECTED]> [Sun, Jul 27, 2008 at 01:55:26PM CEST]: [...] >

Re: [R] Object-oriented programming in R for Java programmers?

2008-07-27 Thread Stephen Tucker
AM Subject: [R] Object-oriented programming in R for Java programmers? Hi, I was wondering if anybody might have a reference for me: My R code is growing and getting more and more confusing. Thus, I figure it's time to switch to object-oriented again. I have done oo programming in C++ and Jav

Re: [R] Object-oriented programming in R for Java programmers?

2008-07-27 Thread Jeroen Ooms
Werner Wernersen wrote: > > I have done oo programming in C++ and Java before but the first few > tutorial on R oo were a bit confusing for me. > My personal experience is that the type of OO programming that makes for example Java code nice and easy to structure is not possible in R. The bigg

Re: [R] Object-oriented programming in R for Java programmers?

2008-07-27 Thread Johannes Huesing
Werner Wernersen <[EMAIL PROTECTED]> [Sun, Jul 27, 2008 at 01:55:26PM CEST]: [...] > Is there any brief tutorial on oo programming in R > especially for people who have done oo in Java or C++ > before? That would be really helpful. "How S4 methods work" highlights the differences between R's funct

[R] Object-oriented programming in R for Java programmers?

2008-07-27 Thread Werner Wernersen
Hi, I was wondering if anybody might have a reference for me: My R code is growing and getting more and more confusing. Thus, I figure it's time to switch to object-oriented again. I have done oo programming in C++ and Java before but the first few tutorial on R oo were a bit confusing for me. I

Re: [R] Object Oriented programming in R

2008-03-06 Thread Research Scholar
You can try this good resource http://www1.maths.lth.se/help/R/R.oo/ RS On Thu, Mar 6, 2008 at 9:30 PM, Davood Tofighi <[EMAIL PROTECTED]> wrote: > Dear all, > > I was wondering if there a guide/tutorial to the object oriented > programming > in R for the beginners. > > Thanks, > > -- > Davood

[R] Object Oriented programming in R

2008-03-06 Thread Davood Tofighi
Dear all, I was wondering if there a guide/tutorial to the object oriented programming in R for the beginners. Thanks, -- Davood Tofighi Department of Psychology Arizona State University [[alternative HTML version deleted]] __ R-help@r-proje