S-Plus users,
Thanks for all of the suggestions.
There were a number of different suggestions that tantamount to something
of the
effect: (Phil Spector's response)
Suppose the data frame is called "x". Then you would write
x[x$visit > 3,]
Don't forget the terminal comma.
If you've got a matrix instead of a data frame, you could say
x[x[,"visit"] > 3,]
or (and this would work for the data frame as well)
x[x[,3] > 3,]
Individual thanks to:
Doug Bates
Fei Chen
Jean Adams
Rick Traub
Duncan Murdoch
Dave Krantz
Rolf Turner
Shawn Boles
Gabriel Baud-Bovy
Chuck Kincaid
and Phil Spector
Cheers,
Calvin
==================== Calvin L. Williams =========================
Department of Mathematical Sciences, Clemson University
0-323 Martin Hall Clemson, South Carolina 29634-1907
VOICE: (864) 656-5241 or leave message (864) 654-7187
EMAIL: calvinw@math.clemson.edu
FAX: 1-(864) 656-5230
WWW: http://www.math.clemson.edu/~calvinw/
============================================================
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|