Re: [R] Function not working as I'd like

2013-10-23 Thread smugg55
Could you please show me what the code should be then? -- View this message in context: http://r.789695.n4.nabble.com/Function-not-working-as-I-d-like-tp4678878p4678898.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-projec

Re: [R] Function not working as I'd like

2013-10-23 Thread peter dalgaard
--Original Message- > From: David Carlson [mailto:dcarl...@tamu.edu] > Sent: Wednesday, October 23, 2013 1:58 PM > To: 'smugg55'; 'r-help@r-project.org' > Subject: RE: [R] Function not working as I'd like > > Your problem is here > > ninetyonecl

Re: [R] Function not working as I'd like

2013-10-23 Thread David Carlson
3 1:58 PM To: 'smugg55'; 'r-help@r-project.org' Subject: RE: [R] Function not working as I'd like Your problem is here ninetyoneclaims$total.chg>q That produces a logical vector of TRUE/FALSE values, but the length of the vector stays the same even though the number

Re: [R] Function not working as I'd like

2013-10-23 Thread David Carlson
Your problem is here ninetyoneclaims$total.chg>q That produces a logical vector of TRUE/FALSE values, but the length of the vector stays the same even though the number of TRUEs is changing. Try sum(ninetyoneclaims$total.chg>q) - David L Carlson Associate Pr

Re: [R] Function not working

2010-11-01 Thread Duncan Murdoch
On 01/11/2010 12:56 PM, Thomas Parr wrote: Below is the (really basic) script I am creating to call a function that sets the working directory, determines the number of files it will need to process in that directory, and creates a mask. A "for" loop will eventually be added that will loop throu