unsorted.data.frame: Extract records whose relative positions would change if...

View source: R/wrangle.R

unsorted.data.frameR Documentation

Extract records whose relative positions would change if sorted.

Description

Extracts records whose relative positions would change if sorted, i.e. records that would not have the same nearest neighbors (before and after). misplaced() returns the index that extracts these records.

Usage

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

Arguments

x

data.frame

...

optional grouping columns (named arguments are ignored)

Value

data.frame, possibly grouped_df

See Also

na dup

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


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