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
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
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.
3 matches
Mail list logo