[R] Conditional Sampling

2010-01-12 Thread ehcpieterse
Hi, I am hoping someone can help me with a sampling question. I am using the following function to sample 10 unique observations: x - sample(1:100, 10, replace=F) Given the first 10 observations, I need to sample another 5 unique observations from the remainder. I essentially want to do a Monte

Re: [R] Conditional Sampling

2010-01-12 Thread ehcpieterse
Thanks Ted, your solution does make perfect sense. The only question I still have is that I would like to sample the remaining 5 observations after I have randomly selected the first 10. Given the initial 10, I would like to sample the following 5 say 1,000 times to get a simulated conditional

Re: [R] Conditional Sampling

2010-01-12 Thread ehcpieterse
Thanks Ted, it's exactly what I'm after. Thanks for the help. -- View this message in context: http://n4.nabble.com/Conditional-Sampling-tp1012072p1012180.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing

[R] Connect to internet

2009-12-14 Thread ehcpieterse
Hi, I have a new workstation and am in the process of moving all my work onto it. I have also installed R 2.10.0 on the new machine. I remember changing my R settings of my old machine (R 2.9.1) to connect to the internet, but I can't remember exactly how. I have tried Sys.getenv(), but it does