[R] speeding read.table

Gabor Grothendieck ggrothendieck at gmail.com
Fri Oct 19 14:41:30 CEST 2012


On Thu, Oct 18, 2012 at 10:14 AM, Fisher Dennis <fisher at plessthan.com> wrote:
> Jason
>
> Are you suggesting grep in R or grep in the system?  If the latter, this won't work because I need to implement this same procedure in Windows (sorry about not mentioning this), in which grep does not exist.  If in R, the syntax is not obvious -- could you provide an example?
>

Windows does have find and findstr which are similar to grep.

   if (.Platform$OS.type == "windows") # use findstr
   else # use grep

>From the Windows console (not from the R console):

  help findstr


-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com




More information about the R-help mailing list