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

From: Romain Francois <rfrancois_at_mango-solutions.com>
Date: Thu, 14 Feb 2008 09:57:14 +0000

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

______________________________________________
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.
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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive