search for: c2data

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

Did you mean: c1data
2009 Mar 11
4
R-help: grep in for loop using index - doesn't work
...orks if I use the actual index value but when I use the for loop index, it doesn't work. Any suggestions plz. Here is the code: data <- read.table(file="Sigmoid.csv", head=FALSE, sep=","); c1 <- data$V1 c2 <- data$V2 c3 <- data$V3 c1data <- data.frame(c1); c2data <- data.frame(c2); c3data <- data.frame(c3); #this works p <- grep("QueryItem",c1data["147",],value=FALSE,fixed=FALSE) print(p) # print 1 #doesn't work i<-147 p1 <- grep("QueryItem",c1data["i",],value=FALSE,fixed=FALSE) print(p1) # prints...
2009 Mar 12
1
eps/pdf write help
...;, sep="")) .. it prints all pdf''s but they are empty Can someone suggest which method shud I use for such. Thanks Mohan Code: for(i in 1:19) { query <- d$V1[i]; print(query) #pdf(paste(i,".pdf", sep="")); x11(); plot(c2data[start1:count,],c3data[start1:count,],xlab="Buildings", ylab="Sky", sub=i); points(c2data[query,],c3data[query,], pch=20, col=''blue''); grid(); dev.print() dev.copy2eps(); dev.copy() start1 <- count + 2; #print(start1) val &lt...