[问题类型]:
程式咨询(我想用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