[R] Quotes

Jim Lemon drjimlemon at gmail.com
Thu Nov 12 07:11:37 CET 2015


Hi Daniel,
As David said, these problems are almost always due to fancy quotes. If you
want plain old ASCII 34 (double) or 39 (single) quotes, try using Notepad
for your editing rather than Word.

Jim


On Thu, Nov 12, 2015 at 5:02 PM, David Winsemius <dwinsemius at comcast.net>
wrote:

>
> > 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
>
> ______________________________________________
> 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.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list