From: JeeBee <JeeBee_at_troefpunt.nl>

Date: Fri 23 Jun 2006 - 05:20:53 EST

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jun 23 05:25:59 2006

Date: Fri 23 Jun 2006 - 05:20:53 EST

- The increment to i and j in your loops are done already, so remove them. try this to see what I mean: for(i in seq(1,5)) { print(i) }
- Provide us with a small (not with 378 rows) example that works, hence give us your yearly. Try str(yearly) to see for yourself what's in there exactly.

My guess is there are factors in yearly (so your conference names are
not strings as you think they are).

See ?factor (type "?factor" in R without the quotes).

If you used something like read.csv to import your yearly from a file, try adding as.is=TRUE there, that might also solve your problem.

JeeBee.

> 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.
*

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jun 23 05:25:59 2006

Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Australia.

Archive generated by hypermail 2.1.8, at Fri 23 Jun 2006 - 08:13:29 EST.

*
Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help.
Please read the posting
guide before posting to the list.
*