Displaying 1 result from an estimated 1 matches for "colchange2".
Did you mean:
colchange
Error with custom function in apply: Error in FUN(newX[, i], ...) : unused argument(s) (newX[, i])
2013 Mar 23
1
Error with custom function in apply: Error in FUN(newX[, i], ...) : unused argument(s) (newX[, i])
Hi everyone,
I wonder if I can get your help using a custom function in apply.
Imagine the following dataframe called "data":
LowLim HighLim A1 A2 A3 A4
4 6 3 4 5 6
4 6 4 5 5 6
2 3 1 4 2 3
2 3 NA NA NA NA
We have created a custom function (see below) that takes the values in
a given row between columns A1 to A4 to see if they are outside the
limits in the same