Skip to contents

This function compares the tags between two vectors of strings.

Usage

compare_tags(vec1, vec2, regex = NULL, regex1 = NULL, regex2 = NULL, ...)

Arguments

vec1

A character vector of tagged text in tokenised form used for reference.

vec2

A character vector of tagged text in tokenised form to compare against vec1.

regex

A regular expression of the tag to be checked in both vectors.

regex1

The regular expression of the tag to search in vector 1.

regex2

The regular expression of the tag to search in vector 2.

...

Additional arguments to be passed on to the quick_conc output.

Value

A tibble showing the quick_conc concordance of the tags in vector 1 displaid line by line in comparison to vector 2.

Details

This function is used to compare the tagging results om two texts. The texts should be reduced to two vectors in tokenised form. The function produces concordance lines of the tags as chosen by regex or index position. Both inputs should be exactly the same length.