[R] Factor Variable frequency

S Ellison S.Ellison at LGCGroup.com
Wed May 25 12:49:03 CEST 2016

> ruipbarradas at sapo.pt
> Maybe the following (untested).
> table(df$Protocol[df$Speed == "SLOW"])

Could also use which.max to get the particular item: ...
tprot <- table(df$Protocol[df$Speed == "SLOW"])

S Ellison

This email and any attachments are confidential. Any use, copying or
disclosure other than by the intended recipient is unauthorised. If 
you have received this message in error, please notify the sender 
immediately via +44(0)20 8943 7000 or notify postmaster at lgcgroup.com 
and delete this message and any copies from your computer and network. 
LGC Limited. Registered in England 2991879. 
Registered office: Queens Road, Teddington, Middlesex, TW11 0LY, UK

More information about the R-help mailing list