Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. for (j in 1:4) {
  2. for (i in 1:max(foodChoice$trial)) {
  3. if (nrow(foodEye[foodEye$trial == i & foodEye$subNum == j, ]) > 0) {
  4. foodChoice$totalfix[foodChoice$subNum == j & foodChoice$trial == i] = max(foodChoice$fixnum[foodChoice$subNum == j & foodChoice$trial == i])
  5. }
  6. if (nrow(artEye[artEye$trial == i & artEye$subNum == j, ]) > 0) {
  7. artChoice$totalfix[artChoice$subNum == j & artChoice$trial == i] = max(artChoice$fixnum[artChoice$subNum == j & artChoice$trial == i])
  8. }
  9.  
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement