[R] how to input a string without quote

Gabor Grothendieck ggrothendieck at gmail.com
Sat Nov 29 15:59:47 CET 2008


This works if you type it in from the R console:

> s <- readline()
this is my string

> s
[1] "this is my string"



On Sat, Nov 29, 2008 at 9:41 AM, Jinsong Zhao <jszhao at mail.hzau.edu.cn> wrote:
> Hi there,
>
> I hope to use a string as an input in my function, however, I don't want
> to input the quotation mark. Is it possible?
>
> Thanks in advance.
>
> Regards,
> Jinsong
>
> ______________________________________________
> 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