Write coordinates and cluster assignment to a CSV file
writeResults.RdFor working with the results outside the app. Settings used: metric, linkage, k
Usage
writeResults(
cluster,
cov = NULL,
covInv = NULL,
exp = NULL,
linked,
linked.cov = NULL,
linked.covInv = NULL,
linked.exp = NULL,
settings,
filename,
user_dist = NULL,
getCoords.space1 = normCoords,
getCoords.space2 = rawCoords
)Arguments
- cluster
cluster space matrix
- cov
covariance matrix
- covInv
inverse covariance matrix
- exp
observable reference value (e.g. experimental measurement)
- linked
linked space matrix
- linked.cov
covariance matrix
- linked.covInv
inverse covariance matrix
- linked.exp
observable reference value (e.g. experimental measurement)
- settings
list specifying parameters usually selected in the app
- filename
path to write the results file to
- user_dist
input distance matrix (optional)
- getCoords.space1
function to calculate coordinates on clustering space
- getCoords.space2
function to calculate coordinates on linked space
Examples
file <- tempfile()
writeResults(
cluster = Bikes$space1, linked = Bikes$space2,
settings = list(metric = "euclidean", linkage = "ward.D2", k = 4), filename = file
)
file.remove(file)
#> [1] TRUE