[R] Quotes

David Winsemius dwinsemius at comcast.net
Thu Nov 12 07:02:09 CET 2015

> On Nov 11, 2015, at 6:54 PM, Daniel Wiegert <dswiegert at gmail.com> wrote:
> Hello, I am trying to use a code which requires quotes around each of about 1000 entries. When I did this

The use of pronouns in place of code is a major cause of ambiguity. What was … “this”?

> in Microsoft programs, R rejected every quote.

Again. the phrase "R rejected” is completely ambiguous. Did you see an error message after you did <something>. If so, please offer up for examination both the <something> and the error message.

> I converted the font to courier new size 10 true type (the R default). No luck. I had to find a sample code and copy the quotes from that 2000 times for R to accept them, or type them in manually in R. 

Word typically uses smart quotes rather than either the single-quote or double-quotes. You can change this behavior in Word by changing the preferences. But you really should not be using Word for either data entry or for code.

> Is there anyway to make this easier? What font in Word/Excel etc. does R prefer and will function using quotes? Commas, letters, numbers, all work, just the full double quotes won't work. 

As above. The “quotes” that Word uses are not shared by most codign platforms.

> Thank you,
> Daniel
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

David Winsemius
Alameda, CA, USA

More information about the R-help mailing list