% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/duplicate_check.R
\name{duplicate_check}
\alias{duplicate_check}
\title{Check Duplicate Rows}
\usage{
duplicate_check(data)
}
\arguments{
\item{data}{A data.frame.}
}
\value{
An object of class \code{DuplicateCheck}. The
returned data.frame contains the row number and a logical
indicator showing whether each row is a duplicate of an
earlier row.
}
\description{
Identifies duplicate rows in a dataset and reports their
row positions.
}
\details{
Duplicate rows are identified using \code{duplicated()}.
The first occurrence of a repeated row is not classified
as a duplicate. Only subsequent occurrences are marked as
duplicates.
}
\examples{
duplicate_check(iris)

dat <- data.frame(
  x = c(1, 2, 2, 3),
  y = c("A", "B", "B", "C")
)

duplicate_check(dat)

}
