misplaced.data.frame: Index records whose relative positions would change if...

View source: R/wrangle.R

misplaced.data.frameR Documentation

Index records whose relative positions would change if sorted.

Description

Indexes records whose relative positions would change if sorted, i.e. records that would not have the same nearest neighbors (before and after). unsorted() returns the records corresponding to this index.

Usage

## S3 method for class 'data.frame'
misplaced(x, ...)

Arguments

x

data.frame

...

optional grouping columns (named arguments are ignored)

Value

logical with length nrow(x)

See Also

na dup

Other unsorted: misplaced(), unsorted.data.frame(), unsorted()


wrangle documentation built on Aug. 24, 2023, 9:07 a.m.