Displaying 1 result from an estimated 1 matches for "daclus".
Did you mean:
dacls
2004 Mar 31
4
Removing leading and trailing spaces (string manipulation)
...er1.jpeg', however the code write filenames like 'Cluster 1 .jpeg'.
How can I get rid of the unwanted spaces? I've looked at ?format and it doesn't seem to work - at least in this context.
###################
ClusCount <- 40
datain <- as.data.frame( read.csv("c:\\daclus.csv"))
for(i in 1:ClusCount){
mapit <- subset(datain, cluster == i)
jpeg(file=paste("c:\\temp\\cluster",format(i),".jpeg"), width = 640, height = 480, pointsize = 12,quality = 300, bg = "white")
plot( as.matrix(mapit[,2]), as.matrix(mapit[,3]),xlim=c(-141.6...