I have a data frame that contains a column of city names that can be repeated:
City <- c("Raleigh", "Charlotte", "Greensboro", "Boone", "Boone", "Charlotte", "Cary")
I would like to create a vector that has only the city names without repetition, like the following:
[1] "Raleigh" , "Charlotte", "Greensboro", "Boone", "Cary"
Is there a function in R that does this?