Skip to content
Back to formatted view

Raw Message

Message-ID: <CAAmySGPB18Cvxm=f3hanSn+2pk422uRnsyOwX9h1gtmGsoTh5g@mail.gmail.com>
Date: 2013-11-18T02:51:36Z
From: R. Michael Weylandt
Subject: quotation marks and scan
In-Reply-To: <CANVKczPX40yWSEW_a=YR5Mv2NpFRr-rU+hEA3Ls3XLsXQRz+DQ@mail.gmail.com>

On Sun, Nov 17, 2013 at 6:24 PM, Barry Rowlingson
<b.rowlingson at lancaster.ac.uk> wrote:
> On Sun, Nov 17, 2013 at 10:42 PM, R. Michael Weylandt
> <michael.weylandt at gmail.com> <michael.weylandt at gmail.com> wrote:
>  Did you mean to do 'nchar(x)' to show that \" was one character?
> 'length' gives the number of elements in a vector, which in this case
> is also one.
>
>  > x=c("\"", '\'')
>  > length(x)
>  [1] 2
>  > nchar(x)
>  [1] 1 1

D'oh! Fair enough,

MW