locations <- c("New York, NY", "Los Angeles, CA", "Chicago, IL")
anonymize_locations(locations, method = "remove")
anonymize_locations(locations, method = "generalize", seed = 123)
anonymize_locations(locations, method = "generalize",
use_uuid = FALSE, seed = 123) # Use sequential IDs
Run the code above in your browser using DataLab