Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 17th, 2012  |  syntax: None  |  size: 0.29 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Get Emacs to ignore contents of \Sexpr{} command in Sweave document to prevent incorrect $-based syntax highlighting
  2. foo$p.value
  3. foo[['p.value']]
  4.        
  5. <<echo=FALSE, results=hide>>=
  6. t1 <- chisq.test(someVar)
  7. p1 <- formatC(t1$p.value, format="%f", digits=2)
  8. @
  9.  
  10. dots with a $p$-value of Sexpr{p1}.