Guest User

Untitled

a guest
Jan 22nd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. item1 <- c("dog", "cat", "horse", "cow", "chicken", "sheep")
  2. item2 <- c("cat", "dog", "cow", "horse", "sheep", "chicken")
  3. correlation <- c(2,2,3,3,4,4)
  4.  
  5. df <- cbind.data.frame(item1, item2, correlation)
  6. df
  7.  
  8.  
  9. item1 item2 correlation
  10. 1 dog cat 2
  11. 2 cat dog 2
  12. 3 horse cow 3
  13. 4 cow horse 3
  14. 5 chicken sheep 4
  15. 6 sheep chicken 4
  16.  
  17. item1 item2 correlation
  18. 1 dog cat 2
  19. 2 horse cow 3
  20. 3 chicken sheep 4
Add Comment
Please, Sign In to add comment