extract function

extract

extract

Reorder data frame returning column col reordered according to the values in column accordingTo

extract(x, col, accordingTo = 1)

Arguments

  • x: a data frame
  • col: column to be ordered
  • accordingTo: column to take as the pattern

Returns

data frame reordered

Author(s)

Diego J. Pedregal

  • Maintainer: Diego J. Pedregal
  • License: GPL-3
  • Last published: 2025-04-02

Useful links