[R] match function or "=="

bo bozhao86 at hotmail.com
Wed Apr 7 17:15:54 CEST 2010

Hi all,

I have a huge dataset(5000k observations), which contains the daily sales
for each company.
If I want to find out the a company with unique company id number, which
function I should use that is more efficient, match or "=="?  For example,

use<-dataset[!is.na(match(dataset$companyID, 12345)),]

Thank you very much.

View this message in context: http://n4.nabble.com/match-function-or-tp1754505p1754505.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list