[問題] output出現奇怪的欄名
[問題類型]:
程式諮詢(我想用R 做某件事情,但是我不知道要怎麼用R 寫出來)
[軟體熟悉度]:
使用者(已經有用R 做過不少作品)
[問題敘述]:
跑自己寫的函數的時候,output出現奇怪的欄名
[程式範例]:
http://codepad.org/aNl1e1Sg
output為
denominator
[1,] 6.071530 4.165084
[2,] 6.018572 3.188893
[3,] 5.014635 0.585715
[4,] 6.033358 1.041271
第二欄奇怪的多了欄名...
檢查過蠻多次也用browser()去檢查
依然是找不到原因
[環境敘述]:
> sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=Chinese (Traditional)_Taiwan.950
[2] LC_CTYPE=Chinese (Traditional)_Taiwan.950
[3] LC_MONETARY=Chinese (Traditional)_Taiwan.950
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Traditional)_Taiwan.950
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] snowfall_1.84-6 snow_0.3-13 MASS_7.3-40 survival_2.38-1
[5] emplik_0.9-9-6 quantreg_5.11 SparseM_1.6
loaded via a namespace (and not attached):
[1] splines_3.1.2 tools_3.1.2
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.116.152.181
※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1429035184.A.C21.html
※ 編輯: tokyo291 (140.116.152.181), 04/15/2015 02:13:51
→
04/15 11:10, , 1F
04/15 11:10, 1F
R_Language 近期熱門文章
PTT數位生活區 即時熱門文章