News for hackers. Stuff that matters.
Re:Try R — A new online course, for free by wch on Wednesday December 05, 2012 @09:33PM (#4879969)
In your R version, you don't need the call to `which()`, so you could do this instead:

    dfrm$height[substr(dfrm$name,1,1) == "D"]
And here's a much clearer way to do it:

    subset(dfrm, grepl("^D", name), select = height)

There are no comments on this comment yet.