Re: [R] Function for ddply

2012-07-24 Thread Jeff Newmiller
Not sure how to help you, because your example is not reproducible (does not run on my computer). Some comments: Avoid using the attach function. It is way better to use the data argument available in most functions. The summarise function is designed for interactive use. You should probably

[R] Function for ddply

2012-07-23 Thread Hutch Pollock
Hello, all. I'm new to R and just beginning to learn to write functions. I know I'm out of my depth posting here, and I'm sure my issue is mundane. But here goes. I'm analyzing the American National Election Study (nes), looking at mean values of a numeric dep_var (environ.therm) across values of a