[R] subset by two variables

From: Dean Sonneborn <dsonneborn_at_ucdavis.edu>
Date: Wed 30 Aug 2006 - 06:05:40 EST


I'm using this syntax to create data subsets for plots: subset=source=="Both". Now I would like to create a subset defined by two different variables like this: subset=source=="Both" subset=site=="home" but this syntax is not correct. The documents in the manual for subset seem to be creating whole new data files not just selecting rows based on the contents of the variables. How do I subset based on two variables.

-- 
Dean Sonneborn, MS
Programmer Analyst
Department of Public Health Sciences
University of California, Davis
(530) 754-9516


	[[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed Aug 30 06:09:57 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 30 Aug 2006 - 08:23:28 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.