Re: [R] how to know whether Vector B is a subset of Vector A

2007-10-12 Thread Marc Schwartz
On Fri, 2007-10-12 at 18:47 +0800, Samuel wrote: Hi, I'm quite fresh to R, and a layman of English as well. I hope I can make you understood. Now I have two vectors A and B. Is there any quick way to know whether B is a subset of A? and If B is a subset of A, can I know easily which

Re: [R] how to know whether Vector B is a subset of Vector A

2007-10-12 Thread Peter Dalgaard
Samuel wrote: Hi, I'm quite fresh to R, and a layman of English as well. I hope I can make you understood. Now I have two vectors A and B. Is there any quick way to know whether B is a subset of A? and If B is a subset of A, can I know easily which elements in A (the index of A) equals to

[R] how to know whether Vector B is a subset of Vector A

2007-10-12 Thread Samuel
Hi, I'm quite fresh to R, and a layman of English as well. I hope I can make you understood. Now I have two vectors A and B. Is there any quick way to know whether B is a subset of A? and If B is a subset of A, can I know easily which elements in A (the index of A) equals to B's elements