[R] Coin Toss Simulation

2010-10-13 Thread Shiv
I am trying a simple toin coss simulation, of say 200 coin tosses. The idea is to have a data frame like so: Experiment#Number_Of_Heads 1 104 296 3101 So I do: d -data.frame(exp_num=c(1,2,3)); /* Just 3

Re: [R] Coin Toss Simulation

2010-10-13 Thread Shiv
Erik- thank you very much. The rbinom worked. Thanks ! GR From: Erik Iverson-3 [via R] ml-node+2994186-584049527-199...@n4.nabble.com Sent: Wed, October 13, 2010 2:24:18 PM Subject: Re: Coin Toss Simulation Shiv wrote: I am trying a simple toin coss