Hi all, When using the package R2PPT I am able to create a presentation, add slides, add title, add text. But when it comes to insert data.frame with the function PPT.AddDataFrame the result is everything but nice.
I may need to define the data.frame in some way that power point interprets it better, but not even the example works for me: ctl <- c(4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14) trt <- c(4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.89,4.32,4.69) group <- gl(2,10,20, labels=c("Ctl","Trt")) weight <- c(ctl, trt) my.df<-data.frame(weight=weight,group=group) myPres<-PPT.Init(visible=TRUE) myPres<-PPT.AddBlankSlide(myPres) myPres<-PPT.AddDataFrame(myPres, df = my.df,row.names=FALSE,size=c(30,100,100,300)) myPres<-PPT.Present(myPres) It adds the table but doesn't even recognize the columns. I would appreciate any tip, tutorial or example. I am using Office 2010, R 2.12.2, Widows7 Thanks in advance. [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org 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.