search for: p_pos

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

Did you mean: _pos
2009 Jul 06
1
how to apply a self-written function to a data frame
...quot; In if (pp > 1) { : condition has length > 1 only the first element will be used " I interpret this error message as saying that only the first element of pp is used. However, I'd like to analyse each row of the data frame, row by row. Using apply(final, 1, abst, gx,gy,tx,ty,p_pos) (with gx - p_pos being columns of the data frame final) gives the error message Error in FUN(newX[, i], ...) : unused argument(s) (c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, aso self-written function abst=function(gx, gy, tx, ty, pp){ # Datum 22.6. 09 - 17:24 # gx, gy Gaze-Spur # fx,...