[R] Logical "and"
Roger.Bivand at nhh.no
Thu Nov 11 14:46:08 CET 2004
On Thu, 11 Nov 2004, Alexander Sokol wrote:
 1 5 11
> I have the following very simple problem:
> Say I have two vectors,
> I would like to create a vector containing the elements in a which are not in
> Obviously, this is possible by writing
> a[a!=b & a!=b & a!=b]
> But I would like a solution which is applicable to the situation where the
> number of elements in b is unknown.
> I have looked in the R manuals, the FAQ and the mailing lists, but have been
> unable to find a solution.
> Thank you for your replies,
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Breiviksveien 40, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93
e-mail: Roger.Bivand at nhh.no
More information about the R-help