Displaying 1 result from an estimated 1 matches for "b_tmp".
Did you mean:
__tmp
2009 Feb 04
3
R command to compare two vectors?
By any chance is there an R command to compare two vectors?
For example,
a_tmp<-c("a", "b", "c", "d", "e", "f", "g", 'h')
b_tmp<-c("a", "c", "e", "g")
I would like to compare b_tmp against a_tmp to determine if the members of b_tmp are part of a_tmp.
I tried
subset(b_tmp, b_tmp==a_tmp)
That doesn't seem to work.
Thanks again.
[[alternative HTML version...