[R] What command does the "cin >> " in R ?
Uwe Ligges
ligges at statistik.uni-dortmund.de
Sat Jan 13 12:26:52 CET 2007
talepanda wrote:
> try:
>
> readLines(n=1)->str
1. Please do always use "<-" and spaces around it as in
temp <- readLines(n=1)
rather than "->", it is *that* confusing!!!
2. It is always wise to avoid duplication of object names (and str()
already is a function), even if it would work in this case.
Uwe Ligges
>
>
> On 1/13/07, Tong Wang <wangtong at usc.edu> wrote:
>> Hi all,
>> Sorry about the simple question, but I have searched the web with "
>> prompt , input " etc. and never got the answer .
>>
>> thanks a lot
>>
>> tong
>>
>> ______________________________________________
>> R-help at stat.math.ethz.ch 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.
>>
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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