Re: [R] For-loop,string variables, and the $-operator

2012-11-27 Thread Rui Barradas
Hello, It's bad to use the subset operator '$' because you don't have a column named 'j'. Use data[[j]] Hope this helps, Rui Barradas Em 27-11-2012 21:22, Allan Schwade escreveu: Hi all, First time poster, so sorry if I commit some breech of posting etiquette. My problem is as follows. I h

[R] For-loop,string variables, and the $-operator

2012-11-27 Thread Allan Schwade
Hi all, First time poster, so sorry if I commit some breech of posting etiquette. My problem is as follows. I have a data frame where each column represents a category and the individual data points in each category are binary responses (in this case they are actually 1's and 0's). What I want to