Re: [R] how to enter a string value

2012-11-12 Thread William Dunlap
> scan(what="", nmax=1,sep="\n") 1: A four word string. Read 1 item [1] "A four word string." > > readline(prompt="Please type a line> ") Please type a line> A line of text [1] "A line of text" > > readLines(n=1) A line of text. [1] "A line of text." Bill Dunlap Spotfire, TIBCO Software wdunlap t

Re: [R] how to enter a string value

2012-11-12 Thread Gerrit Eichner
Alen, look at ?scan and there particularly at the argument 'what'. Hth -- Gerrit On Mon, 12 Nov 2012, alen wrote: hi, I want to know just enter a string value entering a numeric value is make with the function scan () or scan (nmax = ..) but it does not work for string my goal is to