Re: [R] proto question

2009-01-07 Thread Gabor Grothendieck
On Wed, Jan 7, 2009 at 10:22 AM, Simon Knapp wrote: > Dear R Users, > > > > I have a couple of proto objects like: > > > > wedge <- proto(expr={ > >start.year <- 2008 > >end.year <- 2050 > > }) > > > > star.rating <- wedge$proto( > >star = c(4, 5, 8, 10), > >gain = c(0, .3, .5, .7)

[R] proto question

2009-01-07 Thread Simon Knapp
Dear R Users, I have a couple of proto objects like: wedge <- proto(expr={ start.year <- 2008 end.year <- 2050 }) star.rating <- wedge$proto( star = c(4, 5, 8, 10), gain = c(0, .3, .5, .7), cost = c(0, 2100, 4000, 7500), star.rating <- function(., ye