Skip to content
Back to formatted view

Raw Message

Message-ID: <20101215101906.197480@gmx.net>
Date: 2010-12-15T10:19:06Z
From: Rainer Schuermann
Subject: Numbers in a string
In-Reply-To: <AANLkTimOyt=-m3eRyf8pKddd=AsOR8iYbYt2jysTKU6D@mail.gmail.com>

If your OS is Linux, you might want to look at sed or gawk. They are very good and efficient for such tasks.
You need it once or as a part of program? 
Some samples would be helpful...
Rgds,
Rainer


-------- Original-Nachricht --------
> Datum: Wed, 15 Dec 2010 16:55:26 +0800
> Von: Luis Felipe Parra <felipe.parra at quantil.com.co>
> An: r-help <r-help at r-project.org>
> Betreff: [R] Numbers in a string

> Hello, I have stings which have all sort of characters (numbers, letters,
> punctuation marks, etc) I would like to stay only with the numbers in
> them,
> does somebody know how to do this?
> 
> Thank you
> 
> Felipe Parra
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> 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.

-- 

-------

Windows: Just say No.