r distinct values in column - Search