sort_alignment: function sorting alignment data according to token index

Description Usage Arguments

View source: R/dp_tools.R

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


diffrprojects documentation built on May 2, 2019, 1:43 p.m.