Learn R Programming

UComp (version 4.0.1)

extract: extract

Description

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

Usage

extract(x, col, accordingTo = 1)

Value

data frame reordered

Arguments

x

a data frame

col

column to be ordered

accordingTo

column to take as the pattern

Author

Diego J. Pedregal