Dan -
Try using "having Premie not null" instead of "having !is.na(Premie)" .
                                        - Phil Spector
                                         Statistical Computing Facility
                                         Department of Statistics
                                         UC Berkeley
                                         spec...@stat.berkeley.edu


On Tue, 17 Jan 2012, Dan Abner wrote:

Hi everyone,

I have the following:

sqldf("select Premie,count(tpounds) N,avg(tpounds) Avg_Weight,
 stddev_samp(tpounds) StdDev
 from children
 group by Premie
 having !is.na(Premie)")

sqldf() does not like the !is.na(Premie) specification. How does one
exclude a "missing" group in an aggregated query using sqldf()?

Thanks!

Dan

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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.


______________________________________________
R-help@r-project.org 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.

Reply via email to