I have a large csv file with millions of records and 6 columns . I want to get the unique records of one column say "Name" and the columns associated with the unique records in "Name". Say I get 50,000 unique "Name" records I want to get the other 5 columns associated with those 50,000 records. I know how to get the unique records in a column. In the code below I filter out the Name column(1st column) I want into a separate data frame and then return the unique records using unique function. But I am not sure how to get the other 5 columns for those unique records.
m <- read.csv(file="Test.csv", header=T, sep=",",
colClasses = c("character","NULL","NULL","NULL","NULL","NULL"))
names <- unique(m, incomparables = FALSE)