Creating ODS RTF-style output in R XXXX

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Creating ODS RTF-style output in R XXXX

Dan Abner
Hello everyone,

I have been using the sink() function as follows:

x<-rnorm(100)
sink("C:\\Users\\dan\\Desktop\\Current Events\\myhw.txt",
 append=TRUE,split=TRUE)
m1<-c(Mean=mean(x),SD=sd(x),Min=min(x),Max=max(x))
m1
sink()

===

Is it possible to create tabular style output very much like the ODS RTF
STYLE=JOURNAL protocol in SAS (which returns a nicely formatted table with
table lines and easily opened in MS Word)?

Thank you!

Dan

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: Creating ODS RTF-style output in R XXXX

Dieter Menne
Dan Abner wrote
I have been using the sink() function as follows:

x<-rnorm(100)
sink("C:\\Users\\dan\\Desktop\\Current Events\\myhw.txt",
 append=TRUE,split=TRUE)
m1<-c(Mean=mean(x),SD=sd(x),Min=min(x),Max=max(x))
m1
sink()

===

Is it possible to create tabular style output very much like the ODS RTF
STYLE=JOURNAL protocol in SAS (which returns a nicely formatted table with
table lines and easily opened in MS Word)?
Not with sink, but odfWeave can do this, but it's a bit more work initially.

Dieter