The distance function computes the string distances between the classes column of the meteroitesData data frame and pre defined meteroite types. For measuring the distance between to strings the Jaro-Winker distance is used. A value of 1 means there is no similarity between two strings. Vice versa a value of 0 means the similarity between two strings is 100
The function itself creates four variable
classMeteroites contains the general classes of different types of meteroites.
vectorClass is a vector containing charackters, sliced out of the meteroitesData file.
distanceMatrix a matrix ccrated by the stringdistmatrix function
distanceMatrixDF a data frame created from the distanceMatrix variable
1 | distance()
|
No |
additional arguments are used |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.