search for: codelist

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

Did you mean: nodelist
2008 Apr 03
2
iterative loop with user input?
...ntax down. I would like to print some text to the screen at each step in the loop, ask the user for input which is saved in an object, and then advance the loop. Here is an example: #anchor is a file with unique ids anchor<-rep(1:30) anchor<-paste(anchor,"uid",sep="") #codelist is where I would like to store user input codelist<-NULL for(i in 1:30) { #tell the user which ID is being coded print(paste("You are coding unique ID",anchor[i],sep=": ")) #Read a line from a text file: print(readLines(file="file_with_30_lines.txt",warn=F)[i]) #...