'[[.disto' {disto} | R Documentation |
Extract a single value from disto object in matrix style
extraction and via direct indexing. This does not support using names. This
is faster than link{extract}
. For dist backend see:
dist_extract
.
## S3 method for class 'disto'
x[[i, j, k]]
x |
object of class 'disto' |
i |
(integer vector) row index |
j |
(integer vector) column index |
k |
(integer vector) direct index |
(A real number) Distance value
temp <- stats::dist(iris[,1:4])
dio <- disto(objectname = "temp")
dio
dio[[1, 2]]
dio[[2, 1]]
dio[[k = 3]]