Re: [R] Looping, Control Flow & Conditional Statements

2008-06-13 Thread Garth.Warren
Thanks Chuck, 'rle' was just what I needed. G -Original Message- From: Charles C. Berry [mailto:[EMAIL PROTECTED] Sent: Saturday, 14 June 2008 02:00 To: Warren, Garth (CSE, Gungahlin) Cc: r-help@r-project.org Subject: Re: [R] Looping, Control Flow & Conditional Statements See

[R] Looping, Control Flow & Conditional Statements

2008-06-13 Thread Garth.Warren
Dear R Group: I have little experience using R and even less experience with control flow type questions. See the following code: a1 = c(0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0) for(i in 1:1){ sx <- paste("a",i,sep="") s <- eval(parse(text = paste("a

[R] loops & sampling

2007-10-31 Thread Garth.Warren
Hi, I'm new to R (and statistics) and my boss has thrown me in the deep-end with the following task: We want to evaluate the impact that sampling size has on our ability to create a robust model, or evaluate how robust the model is to sample size for the purpose of cross-validation i.e.