Guest User

Untitled

a guest
Apr 23rd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. ****RANGE****
  2.  
  3. > HDR <- function(){
  4. + x <- winDialogString("Enter start of range: ", " ")
  5. + y <- winDialogString("Enter end of range: ", " ")
  6. + x <- as.numeric(x)
  7. + y <- as.numeric(y)
  8. + x <- seq(x,y)
  9. + return(x)
  10. + }
  11.  
  12.  
  13. ****SUCCESS****
  14.  
  15. > Success <- function(){
  16. + x <- winDialogString("Enter success possible: ", " ")
  17. + x <- as.numeric(x)
  18. + return(x)
  19. + }
  20.  
  21. ****FAILURE****
  22.  
  23. > Failure <- function(){
  24. + x <- winDialogString("Enter failures possible: ", " ")
  25. + x <- as.numeric(x)
  26. + return(x)
  27. + }
  28.  
  29.  
  30. ****AMOUNT CHOSEN****
  31.  
  32. > Amount <- function(){
  33. + x <- winDialogString("Enter amount: ", " ")
  34. + x <- as.numeric(x)
  35. + return(x)
  36. + }
Add Comment
Please, Sign In to add comment