search for: file_with_30_lin

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

Did you mean: file_with_30_lines
2008 Apr 03
2
iterative loop with user input?
...uot;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]) #Ask the user for input codelist[i]<-readline(paste("Select one of the following: \n \t please enter 1, 2, or 3: \n Enter Your Response HERE: ",sep="")) } Ideally, loop should work from inside a function. Any tips? Thanks in advance for your time a...