function sorting alignment data according to token index

Share:

Description

function sorting alignment data according to token index

Usage

1
sort_alignment(x, ti1 = NULL, ti2 = NULL, first = TRUE)

Arguments

x

data.frame to be sorted

ti1

either NULL (default): first column of x is used as first token index for sorting; a character vector specifying the column to be used as first token index; or a numeric vector of length nrow(x) to be use as first token index

ti2

either NULL (default): second column of x is used as second token index for sorting; a character vector specifying the column to be used as second token index; or a numeric vector of length nrow(x) to be use as second token index

first

should first text or second text be given priority

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.