Re: [R] Cannot subset a specific mean from this function

2015-12-18 Thread Bradley Wolf
Jim, Thank you for your response. I am not asking you for you to do my work. I am really new to programming (in any context) and really haven't gotten the grasp of the logic yet. I have used R before but in the context of R Commander and am trying this so I can be a more robust user. That

Re: [R] Cannot subset a specific mean from this function

2015-12-18 Thread Bradley Wolf
David, I withdrew from the class because I couldn't understand it. Apologies. I shall ask no more questions. Brad On Fri, Dec 18, 2015 at 3:28 PM, David Winsemius <dwinsem...@comcast.net> wrote: > > > On Dec 18, 2015, at 7:23 AM, Bradley Wolf <chanmo5...@gmail.com&g

[R] Cannot subset a specific mean from this function

2015-12-17 Thread Bradley Wolf
HI, I am very new to R (and programming in general) and am taking a class in it now. I am getting creamed. I want the last part of the function statement below to give me the mean of the data set of nitrates. When I do it I get an error statement stating: Error in pollutantmean$nitrate :