[R] which LETTERS?

Charles Stangor cstangor at charlesstangor.com
Mon Nov 10 13:50:42 CET 2014


I'm confused:

Thanks in advance.

> which(LETTERS == c("A"))
[1] 1
> which(LETTERS == c("A","B"))
[1] 1 2
> which(LETTERS == c("A","B","C"))
[1] 1 2 3
Warning message:
In LETTERS == c("A", "B", "C") :
  longer object length is not a multiple of shorter object length


Charles Stangor
Professor
Dept of Psychology
University of Maryland
Academic Achievement Research Group <http://www.charlesstangor.com/AARG>

	[[alternative HTML version deleted]]



More information about the R-help mailing list