[R] Indexing Elements of a Dataframe

Wolfgang Viechtbauer wviechtb at s.psych.uiuc.edu
Wed May 29 18:52:30 CEST 2002

Thanks to all the people who replied to my question. After trying out
some of the suggestions, it seems that, in general, using outer() is
really the most sensible way of going.

Another suggestion was to use:

	x[as.character(i), as.character(j)] <- "something"

which works as well.

Again, thanks to all that replied!


r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list