[R] Where is element 30?

peter dalgaard pdalgd at gmail.com
Wed Oct 23 21:30:52 CEST 2013


On Oct 23, 2013, at 20:04 , MacQueen, Don wrote:

> Follow these examples:
> 
>> grep(5,1:10)
> [1] 5
> 
>> grep(3, c(1,5,2,3,6))
> [1] 4
> 
> 

Don't:

> grep(5,1:15)
[1]  5 15

-pd
-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-help mailing list