[R] Using sweave

Paulo Justiniano Ribeiro Jr paulojus at est.ufpr.br
Fri Feb 18 18:11:50 CET 2005


I believe you want \Sexpr{}

for instance:
let $x = \Sexpr{x}$

or if you need rounding
let $x = \Sexpr{round(x, dig=4)}$



On Fri, 18 Feb 2005, Matthieu Cornec wrote:

> hello,
>
> Suppose in Rnw file, I compute a numeric of name x containing the value 1.
> In my tex file, I want to write
>
> Let x= "the real value of x"
> so that I can see in my dvi file : Let x = 1,
> with 1, the actual value of x written in a math environnement for example.
>
> Thanks,
>
> Matthieu
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>

Paulo Justiniano Ribeiro Jr
LEG (Laboratório de Estatística e Geoinformação)
Departamento de Estatística
Universidade Federal do Paraná
Caixa Postal 19.081
CEP 81.531-990
Curitiba, PR  -  Brasil
Tel: (+55) 41 361 3573
Fax: (+55) 41 361 3141
e-mail: paulojus at est.ufpr.br
http://www.est.ufpr.br/~paulojus




More information about the R-help mailing list