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 data.frame
unsorted(x, ...)
data.frame, possibly grouped_df
data.frame
optional grouping columns (named arguments are ignored)
na
dup
Other unsorted:
misplaced.data.frame()
,
misplaced()
,
unsorted()