Re: [R] R equivalent of linux "cut", "paste", and "grep" ?

From: Romain Francois <>
Date: Thu, 14 Feb 2008 09:57:14 +0000


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



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

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 14 Feb 2008 - 10:04:16 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 14 Feb 2008 - 10:30:14 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive