Thomas,
se ?sub and regular expression. That should make it. Further, see the package
gsubfn
Best
Simon
On Aug 14, 2013, at 2:14 PM, Thomas wrote:
> I have a string that contains something like:
>
> ...verified email at neu.eduCited by
> 99853
> and I'd like to extract the number next to
Hi,
Try:
a1<- "...verified email at neu.eduCited by
99853
To: r-help@r-project.org
Cc:
Sent: Wednesday, August 14, 2013 8:14 AM
Subject: [R] Grabbing numbers inside a character string
I have a string that contains something like:
...verified email at neu.eduCited by 99853https://stat
I have a string that contains something like:
...verified email at neu.eduCited by 99853div>
and I'd like to extract the number next to the text "Cited by " - so
it will be whatever numbers are beside "Cited by " until a non-numeric
character is reached.
Can anyone suggest a good way of do
3 matches
Mail list logo