powered by
Computes a distance matrix between dialect varieties, the results of which may be used for further analyses and plotting.
distance_matrix( dialect_data, funname, alignment_normalization = FALSE, delim = NULL )
A dataframe of dialect data, transcribed in the International Phonetic Alphabet.
The distance metric to be used. This can be chosen from the following: "leven", "vc_leven".
A logical value, indicating whether or not the distance scores should be normalized by alignment length.
An optional delimiter, in situations where multiple responses exist in the data.
A distance matrix, where the values are the difference between dialects based on edit distance.
# NOT RUN { data(Dutch) Dutch <- Dutch[1:3,1:3] distance_matrix(Dutch, funname = "vc_leven", alignment_normalization = TRUE) # }
Run the code above in your browser using DataLab