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]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.