[R] Problems with code containing a for loop

2009-10-09 Thread Antje##
The following code isn't working and we can't figure out why.. letters = c(A,B,C,D,E,F,G,H,I,J) numbers = 1:3 for(i in 1:6){ #6 letters for (j in 1:3) { #3 numbers for (k in -1:1) { #answer -1,right or

Re: [R] Problems with code containing a for loop

2009-10-09 Thread Erik Iverson
-help-boun...@r-project.org] On Behalf Of Antje## Sent: Friday, October 09, 2009 10:37 AM To: r-help@r-project.org Subject: [R] Problems with code containing a for loop The following code isn't working and we can't figure out why.. letters = c(A,B,C,D,E,F,G,H,I,J) numbers = 1:3 for(i

Re: [R] Problems with code containing a for loop

2009-10-09 Thread xavier . chardon
+01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: [R] Problems with code containing a for loop The following code isn't working and we can't figure out why.. letters = c(A,B,C,D,E,F,G,H,I,J) numbers = 1:3 for(i in 1:6){ #6 letters

[R] Problems with code

2009-10-09 Thread Anne Buunk
The following code isn't working and we can't figure out why.. letters = c(A,B,C,D,E,F,G,H,I,J) numbers = 1:3 for(i in 1:6){ #6 letters for (j in 1:3) { #3 numbers for (k in -1:1) { #answer -1,right

Re: [R] Problems with code

2009-10-09 Thread Barry Rowlingson
On Fri, Oct 9, 2009 at 4:54 PM, Anne Buunk ann3bu...@hotmail.com wrote:                          text(0.5,0.5, text = paste(letters[i], +, numbers[j],=, letters [i+j+k]) Missing ) on the end there. You have one ( for text( and one for paste( but only one ). Use an editor that matches