R Data Analysis Cookbook(Second Edition)
上QQ阅读APP看书,第一时间看更新

How it works...

The unique() function takes a vector or data frame as an argument and returns a similar object with the duplicate eliminated. It returns the non-duplicated cases as is. For repeated cases, the unique() function includes one copy in the returned result.