[R] how to enter a string value
Gerrit Eichner
Gerrit.Eichner at math.uni-giessen.de
Mon Nov 12 17:31:09 CET 2012
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 enter three string: name and surname and date of birth
>
> I try with this code but it shows me errors
>
>
> print ("enter the name")
> name <- scan (nmax = 1)
> print ("enter the first name")
> firstName <- scan (nmax = 1)
> print ("enter the date of birth")
> BirthDate <- scan (nmax = 1)
>
>
>
>
> best regards
>
> alen
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/how-to-enter-a-string-value-tp4649313.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list