ct_luckyguy: Lucky guy function

Description Usage Arguments Details Value Examples

Description

This function tries to create a final correspondance table starting from a vector of user answers and a vector of etalons

Usage

1
ct_luckyguy(user_ans, etalon, algorithm = 1, ...)

Arguments

user_ans

the vector of user responces

etalon

the vector of etalon cathegories

algorithm

1 means that is max_dist is set to + infinity, 2 means that iterative algorithm is used 1 is better for finding one-to-one correspondance, 2 is better to find many-to-one correspondance

translit

logical whether to do transliteration

Details

The Levenstein distance is used. When to matches give the same distance the first one is returned. Warning: for lucky guys only!

Value

pretty correspondance table if you are a lucky guy

Examples

1
2
ct_luckyguy(user_ans,etalon,translit = FALSE)
ct_luckyguy(user_ans,ct_start)

bdemeshev/bigr documentation built on May 12, 2019, 3:40 a.m.