Guest User

Untitled

a guest
Jan 21st, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. contrast=list("1"="profit")
  2. input=readline("please input")
  3. please input1
  4. input
  5. [1] "1"
  6. class(input)
  7. [1] "character"
  8. contrast[[input]]
  9. [1] "profit"
  10. contrast$"1"
  11. [1] "profit"
  12. contrast$input
  13. NULL
  14.  
  15. eval(input)
  16. [1] "1"
  17. contrast$(eval(input))
  18. Error: unexpected '(' in "contrast$("
  19. contrast$eval(input)
  20. Error: attempt to apply non-function
  21. eval(paste(input))
  22. [1] "1"
  23. class(eval(paste(input)))
  24. [1] "character"
  25. contrast$eval(paste(input))
  26. Error: attempt to apply non-function
  27. contrast$(eval(paste(input)))
  28. Error: unexpected '(' in "contrast$("
Add Comment
Please, Sign In to add comment