Re: [R] R interactive input like C++

2010-04-15 Thread Paul Hiemstra
余舟 wrote: Huhu, Thank you for all you guys. readline works. I hope R can be more and more powerful to deal with strings. Strings and power come from regular expressions, check out ?regexpr. cheers, Paul Thank you so much; Zhou 2010/4/14 Erik Iverson David Scott wrote: Erik I

Re: [R] R interactive input like C++

2010-04-14 Thread 余舟
Huhu, Thank you for all you guys. readline works. I hope R can be more and more powerful to deal with strings. Thank you so much; Zhou 2010/4/14 Erik Iverson > David Scott wrote: > >> Erik Iverson wrote: >> >>> ?? wrote: >>> Thank you for your reply. My objective is simple. Ass

Re: [R] R interactive input like C++

2010-04-14 Thread Erik Iverson
David Scott wrote: Erik Iverson wrote: ?? wrote: Thank you for your reply. My objective is simple. Assume I have a constant vector, say Vector. in C++ code, I want to do: int index; cout<<"Please enter the index of the element you want to look at Vector :"; cin>>index cout

Re: [R] R interactive input like C++

2010-04-14 Thread David Scott
Erik Iverson wrote: ?? wrote: Thank you for your reply. My objective is simple. Assume I have a constant vector, say Vector. in C++ code, I want to do: int index; cout<<"Please enter the index of the element you want to look at Vector :"; cin>>index cout

Re: [R] R interactive input like C++

2010-04-14 Thread Lukas Schefczyk
?readline HTH Lukas Schefczyk -- From: "??" Sent: Thursday, April 15, 2010 2:40 AM To: "Erik Iverson" Cc: Subject: Re: [R] R interactive input like C++ Thank you for your reply. My objective is simple. Assume I have a

Re: [R] R interactive input like C++

2010-04-14 Thread Erik Iverson
?? wrote: Thank you for your reply. My objective is simple. Assume I have a constant vector, say Vector. in C++ code, I want to do: int index; cout<<"Please enter the index of the element you want to look at Vector :"; cin>>index cout

Re: [R] R interactive input like C++

2010-04-14 Thread 余舟
Thank you for your reply. My objective is simple. Assume I have a constant vector, say Vector. in C++ code, I want to do: int index; cout<<"Please enter the index of the element you want to look at Vector :"; cin>>index cout< > ?? wrote: > >> Hi, >> >> Does R have some way to function as the c

Re: [R] R interactive input like C++

2010-04-14 Thread Erik Iverson
?? wrote: Hi, Does R have some way to function as the cin object in C++ like I generate a integer variable x in R, and I want the user to input the value x, like in C++ cin>>x See ?scan __ R-help@r-project.org mailing list https://stat.ethz.ch/ma

[R] R interactive input like C++

2010-04-14 Thread 余舟
Hi, Does R have some way to function as the cin object in C++ like I generate a integer variable x in R, and I want the user to input the value x, like in C++ cin>>x I have been using R as a statistics graduate students for 2 years but never know any function similar like this. Any suggestion w