> 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
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
2 matches
Mail list logo