unsorted.data.frame {wrangle} | R Documentation |
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.
## S3 method for class 'data.frame'
unsorted(x, ...)
x |
data.frame |
... |
optional grouping columns (named arguments are ignored) |
data.frame, possibly grouped_df
Other unsorted:
misplaced.data.frame()
,
misplaced()
,
unsorted()