Advertisement
Voldemord

Untitled

Jun 7th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1.  
  2. vote <- c("a", "b", "c", "d", "e")
  3. votes = sample(vote, 100, replace = T)
  4. a = length(which(votes=="a"))
  5.  
  6. a = length(which(votes=="a"))
  7. b = length(which(votes=="b"))
  8. c = length(which(votes=="c"))
  9. d = length(which(votes=="d"))
  10. e = length(which(votes=="e"))
  11.  
  12. message("kategoria-1(a+b): ", a+b)
  13. message("kategoria-2(c+d): ", c+d)
  14. message("kategoria-3(e): ", e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement