Re: [R] Loop to fill in array skips over certain columns

2008-09-12 Thread Greg Snow
t; To: r-help@r-project.org > Subject: [R] Loop to fill in array skips over certain columns > > Hello, > > Below is a simple loop that should place a 3 in the first row > of each column in the array "List". > > iterations<-3 > tweaksize<-0.00 > ii <-1

[R] Loop to fill in array skips over certain columns

2008-09-12 Thread poastpd
Hello, Below is a simple loop that should place a 3 in the first row of each column in the array "List". iterations<-3 tweaksize<-0.00 ii <-1 List=array(-1000, dim=c(iterations,11)) colnames(List) <- c("orig", "0.05", "0.10", "0.15","0.20","0.25","0.30","0.35","0.40","0.45","0.50") Entry=3