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

Richard Cotton Richard.Cotton at hsl.gov.uk
Thu Oct 9 14:26:59 CEST 2008




Michael Just wrote:
> 
> 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() ?
> 

write.csv works, e.g.
write.csv(symnum(c5.s), "test.csv")

-----
Regards,
Richie.

Mathematical Sciences Unit
HSL
-- 
View this message in context: http://www.nabble.com/Exporting-symnum%28%29-result-from-cor%28%29-tp19895075p19897840.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list