[R] Deleting rows based on identity variable

hadley wickham h.wickham at gmail.com
Thu Apr 2 22:48:04 CEST 2009


On Thu, Apr 2, 2009 at 3:37 PM, Rowe, Brian Lee Yung (Portfolio
Analytics) <B_Rowe at ml.com> wrote:
> Is this what you want:
>> d1[which(id != 4),]

Or just

d1[id != 4, ]

Hadley

-- 
http://had.co.nz/




More information about the R-help mailing list