Why are you using the $$ signs? Also if sample is a dataset you need to
subset the rows data[test==1,] so a comma is missing.
-----Original Message-----
From: gov2001-l-bounces at
lists.fas.harvard.edu [mailto:gov2001-l-
bounces at
lists.fas.harvard.edu] On Behalf Of Keith Schnakenberg
Sent: Wednesday, March 26, 2008 2:08 PM
To: gov2001-l at
lists.fas.harvard.edu
Subject: [gov2001-l] subsetting syntax error
I am trying to subset my sample based on the logical operators below.
If anybody could shed some light on why I am getting syntax errors, I
would be grateful.
sample=brfss[HADHYST2==2 && CTYCODE != 777 && CTYCODE != 999 $$ AGE
= 40]
Error: syntax error
Thanks,
Keith
_______________________________________________
gov2001-l mailing list
gov2001-l at
lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l