I have a data frame which has two columns 'Place' and 'Visits'. I want only those rows for which has same 'Place' values. For example if the data frame is like this:
Place Visits
China 23
China 48
London 234
Paris 34
Boston 534
Boston 34
I want these rows only after the operation:
Place Visits
China 23
China 48
Boston 534
Boston 34
How can I accomplish this in R? I tried using duplicated but it is not giving me the correct results.