2008/8/28 Yuan Jian <jayuan2008 at yahoo.com>: > Hi, > > I try to add items to a vector, but when the it has existed, the item should be skipped. > does anyone know how to do it a simple way? You might be able to use unique(). Regards, Nicky Chorley