Guest User

Untitled

a guest
Jan 16th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. for(i in 1:dim(newdata)[1])
  2. {
  3. for(j in 1:dim(newdata1)[1])
  4. {
  5. if(newdata$`Tab No`[i]==newdata1$`Tab No`[j] & (newdata$`Survey Date`[i]
  6. >= newdata1$`Survey Start Date`[j] & newdata$`Survey Date`[i]
  7. <=newdata1$`Survey End Date`[j]))
  8. {
  9. newdata$`Village Name`[i] <- newdata1$`Village Name`[j]
  10. }
  11. }}
Add Comment
Please, Sign In to add comment