search for: queryitem

Displaying 1 result from an estimated 1 matches for "queryitem".

2009 Mar 11
4
R-help: grep in for loop using index - doesn't work
...k. 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 0 for(i in 137:270) { print(i) p <- grep("QueryItem",c1data["i",...