Advertisement
daroczig

evals demo

Oct 7th, 2014
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 1.07 KB | None | 0 0
  1. > library(pander)
  2. > evals('I love R')
  3. [[1]]
  4. $src
  5. [1] "I love R"
  6.  
  7. $result
  8. NULL
  9.  
  10. $output
  11. NULL
  12.  
  13. $type
  14. [1] "error"
  15.  
  16. $msg
  17. $msg$messages
  18. NULL
  19.  
  20. $msg$warnings
  21. NULL
  22.  
  23. $msg$errors
  24. [1] "Unexpected symbol at character 3 in line 1: ` I love`"
  25.  
  26.  
  27. $stdout
  28. NULL
  29.  
  30. attr(,"class")
  31. [1] "evals"
  32.  
  33. > evals('chisq.test(table(mtcars$am, mtcars$gear))')
  34. [[1]]
  35. $src
  36. [1] "chisq.test(table(mtcars$am, mtcars$gear))"
  37.  
  38. $result
  39.  
  40.     Pearson's Chi-squared test
  41.  
  42. data:  table(mtcars$am, mtcars$gear)
  43. X-squared = 20.9447, df = 2, p-value = 2.831e-05
  44.  
  45.  
  46. $output
  47. [1] ""                                                
  48. [2] "\tPearson's Chi-squared test"                    
  49. [3] ""                                                
  50. [4] "data:  table(mtcars$am, mtcars$gear)"            
  51. [5] "X-squared = 20.9447, df = 2, p-value = 2.831e-05"
  52. [6] ""                                                
  53.  
  54. $type
  55. [1] "htest"
  56.  
  57. $msg
  58. $msg$messages
  59. NULL
  60.  
  61. $msg$warnings
  62. [1] "Chi-squared approximation may be incorrect"
  63.  
  64. $msg$errors
  65. NULL
  66.  
  67.  
  68. $stdout
  69. NULL
  70.  
  71. attr(,"class")
  72. [1] "evals"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement