Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (j in 1:4) {
- for (i in 1:max(foodChoice$trial)) {
- if (nrow(foodEye[foodEye$trial == i & foodEye$subNum == j, ]) > 0) {
- foodChoice$totalfix[foodChoice$subNum == j & foodChoice$trial == i] = max(foodChoice$fixnum[foodChoice$subNum == j & foodChoice$trial == i])
- }
- if (nrow(artEye[artEye$trial == i & artEye$subNum == j, ]) > 0) {
- artChoice$totalfix[artChoice$subNum == j & artChoice$trial == i] = max(artChoice$fixnum[artChoice$subNum == j & artChoice$trial == i])
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement