remove.dup.rows {cwhmisc}R Documentation

Remove duplicate rows

Description

Removes duplicate rows from a dataframe.

Usage

remove.dup.rows(dfr)

Arguments

dfr A dataframe

Details

Uses the function eql.

Value

The dataframe with only one copy of identical rows.

Author(s)

Peter Dalgaard, p.dalgaard@biostat.ku.dk

Examples

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

[Package cwhmisc version 2.0.1 Index]