[R] Exporting symnum() result from cor()

John Kane jrkrideau at yahoo.ca
Thu Oct 9 15:38:19 CEST 2008


Perhaps save the file as a csv (?write.table) and present the results in a spreadsheet or word processor table?


--- On Thu, 10/9/08, Michael Just <mgjust at gmail.com> wrote:

> From: Michael Just <mgjust at gmail.com>
> Subject: [R] Exporting symnum() result from cor()
> To: "r-help" <r-help at r-project.org>
> Received: Thursday, October 9, 2008, 5:04 AM
> Hello,
> I am trying to export the results from symnum() while
> maintain their
> readability. I tried using sink to text file and also
> copying and pasting
> but the results end up looking like this:
> 
> > symnum(c5.s)
>           bC bED bEN bLP bLS bPA bPD bPR p
> bbContag  1
> bbED      +  1
> bbENN_MN  +  B   1
> bbLPI     ,  ,   ,   1
> bbLSI     +  B   B   ,   1
> bbPAFRAC  ,  *   *   ,   *   1
> bbPD      ,  B   B   ,   B   B   1
> bbPROX_MN +  B   B   ,   B   *   *   1
> pfor                                     1
> attr(,"legend")
> 
> 
> Is there a way I can get these out of R with their
> readability intact so I
> can share them with non-R users? Is it possible to export
> the way things
> look in View() ?
> 
> Thanks,
> Michael Just
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at 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.



More information about the R-help mailing list