u should get what you want.
> Cheers,
> Tim
>
> > Date: Sun, 21 Jan 2018 10:50:31 -0500
> > From: Ek Esawi
> > To: Luigi Marongiu , r-help@r-project.org
> > Subject: Re: [R] substr gives empty output
> > Message-ID:
> > > ri_...@mail.gmail.com
uot; "t" "i" "n" "g"
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77843-4352
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of H
p@r-project.org
> Subject: Re: [R] substr gives empty output
> Message-ID:
> ri_...@mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> The reason you get "" is, as stated on the previous response and on the
> documentation of substr functio
The reason you get "" is, as stated on the previous response and on
the documentation of substr function, the function "When extracting,
if start is larger than the string length then "" is returned.". This
is what happens on your function.
HTH
EK
On Sun, Jan 21, 2018 at 3:59 AM, Luigi Marongiu
On Sun, 2018-01-21 at 09:59 +0100, Luigi Marongiu wrote:
> Dear all,
> I have a string, let's say "testing", and I would like to extract in
> sequence each letter (character) from it. But when I use substr() I only
> properly get the first character, the rest is empty (""). What am I getting
> wron
5 matches
Mail list logo