removeduplicates: Remove duplicate rows, optionally by key

View source: R/primitives.R

removeduplicatesR Documentation

Remove duplicate rows, optionally by key

Description

Remove duplicate rows, optionally by key

Usage

removeduplicates(data, by = NULL, keep = c("first", "last", "none"))

Arguments

data

A data.frame.

by

Character vector of column names identifying groups or join keys.

keep

Which duplicate to keep.

Value

data with duplicates removed.


basetable documentation built on Sept. 18, 2026, 9:13 a.m.