[R] how to enter a string value
alen
tarhouni_wael at hotmail.fr
Mon Nov 12 16:55:23 CET 2012
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.
More information about the R-help
mailing list