distmat_to_df: Convert a dialectometric distance matrix to a dataframe

Description Usage Arguments Value Examples

View source: R/distmat_to_df.R

Description

Input a distance matrix, with which a dataframe will be returned with the three columns of "row", "col", and "dist". The first two correspond with the rows and columns in the distance matrix, and the last refers to their crossing point, where the distance between them is given.

Usage

1
distmat_to_df(dist_matrix)

Arguments

dist_matrix

A distance matrix.

Value

A dataframe with the columns "row", "col", and "dist".

Examples

1
2
3
# Example 1: Dutch distance matrix to Dutch dataframe
data(distDutch)
distmat_to_df(distDutch)

dialectR documentation built on May 20, 2021, 9:06 a.m.