Re: [R] Chull function

2009-03-09 Thread Richard . Cotton
> Using a simulation, I have to find what are the probabilities that, > in a square region, the convex hull is a triangle, using the "chull" > function. However, I have a hard time with the chull function, i > did not see many examples in which the chull function is used. I > searched a long t

Re: [R] Chull function

2009-03-09 Thread Yihui Xie
Isn't the single example enough in help(chull)? In your case I think you are finding the probability of length(chull(x)) == 3. Regards, Yihui -- Yihui Xie Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086 Mobile: +86-15810805877 Homepage: http://www.yihui.name School of Statistics, Room 1037, Mi

[R] Chull function

2009-03-09 Thread Alexandre Pratte
Hi everyone, Using a simulation, I have to find what are the probabilities that, in a square region, the convex hull is a triangle, using the "chull" function. However, I have a hard time with the chull function, i did not see many examples in which the chull function is used. I searched a