Learn R Programming

cwhmisc (version 6.0)

remove.dup.rows: Remove duplicate rows

Description

Removes duplicate rows from a dataframe.

Usage

remove.dup.rows(dfr)

Arguments

dfr
A dataframe

Value

The dataframe with only one copy of identical rows.

Details

Uses the function eql.

Examples

Run this code
  dfr <- data.frame(matrix(c(1:3,2:4,1:3,1:3,2:4,3:5),6,byrow=TRUE))
  remove.dup.rows(dfr)

Run the code above in your browser using DataLab