Guest User

Untitled

a guest
Oct 16th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. t1 = c("dog"="dog","cat"= "cat")
  2. t1
  3.  
  4. Results:
  5. dog cat
  6. "dog" "cat"
  7.  
  8. t = data.frame(animal = "dog","cat")
  9. c(t$animal =t$animal) # this does not work
  10.  
  11. setNames(t$animal, t$animal)
  12.  
  13. #dog cat
  14. #dog cat
  15.  
  16. t = data.frame(animal = c("dog","cat"))
Add Comment
Please, Sign In to add comment