[R] R equivalent of linux "cut", "paste", and "grep" ?
Romain Francois
rfrancois at mango-solutions.com
Thu Feb 14 10:57:14 CET 2008
Hi,
If you are on a linux system, you can use these linux commands through
pipe.
Otherwise :
- perl would do a great job on this.
- if you are familiar enough with SQL syntax, you can use the
development version of the sqldf package to work on csv files as if they
were database tables. See example 8 in http://code.google.com/p/sqldf/
Cheers,
Romain
Ng Stanley wrote:
> Hi,
>
> What functions should I use in order to perform the following steps:
>
> 1) Load a particular column (e.g., column 5) from a csv file
> 2) Append the column 5 to another csv file
> 3) select those rows that match specific keywords in column 5
>
--
Mango Solutions
data analysis that delivers
Introduction to R training course :: London :: 06-07 March 2008
http://www.mango-solutions.com/services/rtraining/r_intro.html
More information about the R-help
mailing list