_ | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁
FrontPage › 豢ル伎ロ蠍

Contents

1
2 sink
3 capture.output
4 豢豌


1 #

れ螻 螳 蠏覿 れ summary 襯 伎覃 覿蟆郁骸襯 覲 . 企 蟆曙 覿蟆郁骸襯 覃伎 豢ロ 殊 ロ螻 矩る 企至 伎狩蟾?
> swiss.lm <- lm(Fertility ~ Examination, swiss)
> summary(swiss.lm)
Call:
lm(formula = Fertility ~ Examination, data = swiss)

Residuals:
     Min       1Q   Median       3Q      Max 
-25.9375  -6.0044  -0.3393   7.9239  19.7399 

Coefficients:
            Estimate Std. Error t value Pr(>|t|)    
(Intercept)  86.8185     3.2576  26.651  < 2e-16 ***
Examination  -1.0113     0.1782  -5.675 9.45e-07 ***
---
Signif. codes:  0 *** 0.001 ** 0.01 * 0.05 . 0.1   1 

Residual standard error: 9.642 on 45 degrees of freedom
Multiple R-Squared: 0.4172,	Adjusted R-squared: 0.4042 
F-statistic: 32.21 on 1 and 45 DF,  p-value: 9.45e-07 
螳 螳 覦覯 襷一る 蠍伎 Copy & Paste 蟆伎襷 蟆郁骸 伎 蠍碁 覿ク 訖襷 螳 蠍 覓語 襷 覿 れ 郁鍵 企給.

2 sink #

sink R 豢ル 伎れ 覈 殊 ロ. 覯 螳. sink(朱)企手 ロ覃 蠏 危 覈 豢レ 企 殊 ル. sink()手 ロ覃 れ 覃伎 豢ル.

sink 企 螳 企 殊 朱 襦 伎企. 襷 蠍一ヾ 殊 伎 伎伎 豢 伎 ロ螻 矩る sink(朱, append=T) 螳 ロ.

蠏覿 蟆郁骸襯 lm.txt 殊 ロ .
> sink('lm.txt')
> summary( lm )
> sink()

3 capture.output #

capture.output 覈轟 蟆郁骸襯 character 覯″磯 ロ. 蠏覿 蟆郁骸襯 lm.txt 殊 ロ 企.
> lm.summary <- capture.output( summary(lm) )
> cat(lm.summary, file='lm.txt', sep='\n')

蠍 蠍郁鍵..
企: : るジ讓曙 襦螻豺 企Ν 譯殊語. 襦螻豺
EditText : Print : Mobile : FindPage : DeletePage : LikePages : Powered by MoniWiki : Last modified 2018-04-13 23:12:53

碁レ 螻朱覿 煙隈螻 る朱覿 覓企讌. (蟯)