[R] Doing a Task Without Using a For Loop

Claudia Beleites cbeleites at units.it
Tue Oct 14 17:11:18 CEST 2008


> This seems to work but is horribly slow (some files I am working with have
> over 500,000 lines). Can anyone suggest a faster way of doing this, perhaps
> a way that does not use a for loop? Thanks.
If the table solutions don't work or take forever with your real data, have a 
look into the wiki:
http://wiki.r-project.org/rwiki/doku.php?id=tips:data-frames:count_and_extract_unique_rows

Claudia

-- 
Claudia Beleites
Dipartimento dei Materiali e delle Risorse Naturali
Università degli Studi di Trieste
Via Alfonso Valerio 6/a
I-34127 Trieste

phone: +39 (0 40) 5 58-34 47
email: cbeleites at units.it



More information about the R-help mailing list