Re: [R] What command does the "cin >> " in R ?

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Sat 13 Jan 2007 - 11:26:52 GMT

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@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@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@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@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. Received on Sat Jan 13 22:36:07 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 13 Jan 2007 - 12:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.