[R] Strings to Numbers?

Justin Rapp justin.rapp at gmail.com
Thu Jun 22 20:03:14 CEST 2006


I am running the following command.

for( i in 1:378){

	for (j in 1:5) {
				*********Year [((i-1)*5)+j,1]<- yearly[i,2];*********
				Year [((i-1)*5)+j,2] <- j;
				Year [((i-1)*5)+j,3] <- yearly[i,(j+2)];
				j <- (j+1);
			}
		i <- (i+1)
		}

The array referenced yearly[i,2] contains conference names i.e. BIG12,
SEC, BIG10.  The loop executes fine except for the fact that instead
of the strings from yearly, Year[,1] contains numbers.

Any suggestions.
-- 
Justin Rapp
409 S. 22nd St.
Apt. 1
Philadelphia, PA 19146
Cell:(267)252.0297



More information about the R-help mailing list