Skip to content

R function help!

2 messages · Pete Brecknock, Rolf Turner

#
simonj16 wrote
Any good?

ticket.ns<-c(1,1,1,1,2,5,5,10,10,10) 

draw=NULL
for (i in 1:25){
  draw[i] <- sum(sample(ticket.ns,40,replace=TRUE))
}

print(draw)

HTH

Pete



--
View this message in context: http://r.789695.n4.nabble.com/R-function-help-tp4658998p4659001.html
Sent from the R help mailing list archive at Nabble.com.
#
Pete:  Please don't do people's homework for them!
At most, give them a ***hint*** only.

     cheers,

         Rolf Turner
On 02/19/2013 12:01 PM, Pete Brecknock wrote: