search for: lookzone

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

2012 Oct 18
3
For loop with i and j and multiple if statements... help!
....] To assign look zones, I looked which zone (e.g. the references) is represented by which coordinates. This give the following results: Look zone 1 = x > 170, x < 1250, y > 150 and y < 480 look sone 2 = x > 170, x < 420, y > 480 and y < 810. Now I would like to assign a lookzone for each subject by the means of a function with a for loop. I've made this: lookzones <- function(input){ lookzone <- matrix(0, nrow(input), 1)#Make space for lookzone variables for(i in 1:nr...