search for: tempt1

Displaying 1 result from an estimated 1 matches for "tempt1".

Did you mean: temp1
2009 Jul 01
2
?max (so far...)
...from the help files that the generic way is that if I'm on the 500th row of a 1000 row data.frame and want to limit the search max does to rows 1:500 I should use something like [1:row] but it's not working inside my function. The idea works outside the function, in the sense I can create tempt1[1:7] and the max function returns what I expect. How do I do this with row? Simple example attached. hp should be 'highest p', ll should be 'lowest l'. I get an error message "Error in 1:row : NA/NaN argument" Thanks, Mark AddCols = function (MyFrame) { MyFrame$p&lt...