[R] How to capture the printout on the screen?

2013-07-17 Thread Gang Chen
This is most likely a silly question. First I run the following: require(car) mod.ok - lm(cbind(pre.1, pre.2, pre.3, pre.4, pre.5, post.1, post.2, post.3, post.4, post.5, fup.1, fup.2, fup.3, fup.4, fup.5) ~ treatment*gender, data=OBrienKaiser) phase -

Re: [R] How to capture the printout on the screen?

2013-07-17 Thread Greg Snow
If you are happy with the character strings printed out then you can use the capture.output function. If you want the numbers (without needing to convert) then look at the print method for the class of object that you are working with and see what the code is. It is probably calling another

Re: [R] How to capture the printout on the screen?

2013-07-17 Thread Gang Chen
Thanks a lot for the pointer! After I downloaded the source code and saw the innards of the print function, I know what to do now. Thanks again, Gang On Wed, Jul 17, 2013 at 6:00 PM, Greg Snow 538...@gmail.com wrote: If you are happy with the character strings printed out then you can use the