On 19/07/2017 11:41 AM, Jeff Newmiller wrote:
I think the whole premise of this question is flawed. If you want to work with
this string as data, then read it in from a separate file using readLines. If
it is fixed data that you want to be part of your program, then invest the
effort to escap
I think the whole premise of this question is flawed. If you want to work with
this string as data, then read it in from a separate file using readLines. If
it is fixed data that you want to be part of your program, then invest the
effort to escape the odd characters and be done with it. But us
> On Jul 19, 2017, at 5:38 AM, Michael Friendly wrote:
>
> It was suggested to quote your string with *backticks* (` ... `) rather than
> single quotes.
>
> String <- `
>
> ...
> `
That failed for me. The parser considered it a language object, an R name.
Here's what I needed to do:
It was suggested to quote your string with *backticks* (` ... `) rather
than single quotes.
String <- `
...
`
On 7/18/2017 1:05 PM, Christofer Bogaso wrote:
Thanks for your pointer.
Is there any way in R how to replace " ' " with " /' " programmatically?
My actual string is quite
On Tue, 18 Jul 2017 22:35:17 +0530
Christofer Bogaso wrote:
> Thanks for your pointer.
>
> Is there any way in R how to replace " ' " with " /' "
> programmatically?
>
Hi,
perhaps you should simply read the content of a corresponding text
file? There's a simple way using the readr package. Us
On Tue, Jul 18, 2017 at 12:05 PM, Christofer Bogaso <
bogaso.christo...@gmail.com> wrote:
> Thanks for your pointer.
>
> Is there any way in R how to replace " ' " with " /' " programmatically?
>
> My actual string is quite lengthy, so changing it manually may not be
> possible. I am aware of gsub
Thanks for your pointer.
Is there any way in R how to replace " ' " with " /' " programmatically?
My actual string is quite lengthy, so changing it manually may not be
possible. I am aware of gsub() function, however not sure I can apply
it directly on my original string.
Regards,
On Tue, Jul 1
Try:
String = '
your string opens with single quote ', and has a single quote ' in the middle.
R sees that as the end of the string. You will need to escape the
interior ' with
\'
See ?Quotes
for details.
On Tue, Jul 18, 2017 at 12:48 PM, Christofer Bogaso
wrote:
> Hi again,
>
> Let say I have below string (ar
Hi again,
Let say I have below string (arbitrary)
10 matches
Mail list logo