Skip to content

Instantly share code, notes, and snippets.

@qoelet
Created December 17, 2013 04:32
Show Gist options
  • Save qoelet/8000073 to your computer and use it in GitHub Desktop.
Save qoelet/8000073 to your computer and use it in GitHub Desktop.
# load sample data (with duplicates reported earlier)
basket <- read.csv("/home/kenny/some_data_with_duplicates.csv", header=TRUE)
# remove duplicates and sort by column
basket <- unique(basket)
basket <- basket[with(basket, order(basket_id)), ] # sort by ident
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment