search for: cluscount

Displaying 2 results from an estimated 2 matches for "cluscount".

2004 Mar 31
4
Removing leading and trailing spaces (string manipulation)
...n the resulting data. I'd like the file names to be 'Cluster1.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")...
2004 May 03
1
Speed up graphics output?
...year 2004 month 04 day 12 language R ------------------------------------------- #Input file is comma-delimited and has GeogID, LON, LAT and CLUSTER #LON should be in column 2 and LAT in column 3 library(maptools) #Number of clusters in total ClusCount <- 150 #Read in Cluster Assignments datain <- as.data.frame( read.table("c:\\data\\Run1\\kmeansout_150.txt", header=TRUE )) colnames(datain) <- c("geogid","long","lat","cluster") #Set up screen device #split 2x2 - permits 1 map per secti...