ind1 <- 384
k1 <- convert_kanji(ind1, "character")
ind2 <- which(dstrokedit[ind1,] > 0)
# dstrokedit contains only the "closest" kanji
k2 <- convert_kanji(ind2, "character")
row_a <- dstrokedit[ind1, ind2]
if (requireNamespace("kanjistat.data", quietly = TRUE)) {
row_b <- sedist(k1, k2)
mat <- rbind(row_a, row_b)
rownames(mat) = c(k1, k1)
colnames(mat) = k2
mat
}
Run the code above in your browser using DataLab