[問題] (救回) loop 中 cell 內細格等於變項
相關作者訊息已經遮蔽
想要請問一下
我現在想要進行
c[1]=a1 (已知變項)
.
.
.
c[8]=a8
以下是我寫得loop
a1=2
a2=3
a3=4
a4=5
a5=6
a6=7
a7=8
a8=9
c=1:8
t=data.frame(c)
attach(t)
for(i in 1:8) c[i] <- (paste('a',i,sep=""))
但沒想到c都變成文字的a1 而非變項內容
我想要的是如何把一些規律的變項 變成一個data.frame
這樣我才可以對這個data.frame進行觀看分佈狀況 就是常用的bootstrap 的最後的步驟
不知道要怎樣修改我原本的code
或是有更快或簡單的code 可以把a1-a8 變成一個data 呢?
謝謝
--
※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1421623009.A.29A.html
推
01/19 08:50, , 1F
01/19 08:50, 1F
→
01/19 09:18, , 2F
01/19 09:18, 2F
→
01/19 09:19, , 3F
01/19 09:19, 3F
→
01/19 09:19, , 4F
01/19 09:19, 4F
→
01/19 09:20, , 5F
01/19 09:20, 5F
→
01/19 09:20, , 6F
01/19 09:20, 6F
→
01/19 09:28, , 7F
01/19 09:28, 7F
→
01/19 09:30, , 8F
01/19 09:30, 8F
→
01/19 09:32, , 9F
01/19 09:32, 9F
→
01/19 09:40, , 10F
01/19 09:40, 10F
→
01/19 09:41, , 11F
01/19 09:41, 11F
→
01/19 09:41, , 12F
01/19 09:41, 12F
→
01/19 09:43, , 13F
01/19 09:43, 13F
→
01/19 09:44, , 14F
01/19 09:44, 14F
→
01/19 09:44, , 15F
01/19 09:44, 15F
→
01/19 09:45, , 16F
01/19 09:45, 16F
→
01/19 09:45, , 17F
01/19 09:45, 17F
→
01/19 09:45, , 18F
01/19 09:45, 18F
→
01/19 09:46, , 19F
01/19 09:46, 19F
→
01/19 09:47, , 20F
01/19 09:47, 20F
→
01/19 09:47, , 21F
01/19 09:47, 21F
→
01/19 09:47, , 22F
01/19 09:47, 22F
→
01/19 09:48, , 23F
01/19 09:48, 23F
→
01/19 09:48, , 24F
01/19 09:48, 24F
→
01/19 09:48, , 25F
01/19 09:48, 25F
→
01/19 09:48, , 26F
01/19 09:48, 26F
→
01/19 09:50, , 27F
01/19 09:50, 27F
→
01/19 09:51, , 28F
01/19 09:51, 28F
→
01/19 09:51, , 29F
01/19 09:51, 29F
→
01/19 09:51, , 30F
01/19 09:51, 30F
→
01/19 09:52, , 31F
01/19 09:52, 31F
→
01/19 09:53, , 32F
01/19 09:53, 32F
→
01/19 09:53, , 33F
01/19 09:53, 33F
→
01/19 09:53, , 34F
01/19 09:53, 34F
→
01/19 09:54, , 35F
01/19 09:54, 35F
→
01/19 09:55, , 36F
01/19 09:55, 36F
→
01/19 09:56, , 37F
01/19 09:56, 37F
→
01/19 09:56, , 38F
01/19 09:56, 38F
→
01/19 09:56, , 39F
01/19 09:56, 39F
→
01/19 09:57, , 40F
01/19 09:57, 40F
→
01/19 10:02, , 41F
01/19 10:02, 41F
→
01/19 10:02, , 42F
01/19 10:02, 42F
→
01/19 10:02, , 43F
01/19 10:02, 43F
→
01/19 10:03, , 44F
01/19 10:03, 44F
推
01/19 11:53, , 45F
01/19 11:53, 45F
推
01/19 11:53, , 46F
01/19 11:53, 46F
推
01/19 11:53, , 47F
01/19 11:53, 47F
推
01/19 11:56, , 48F
01/19 11:56, 48F
→
01/19 15:18, , 49F
01/19 15:18, 49F
→
01/19 15:19, , 50F
01/19 15:19, 50F
→
01/19 15:21, , 51F
01/19 15:21, 51F
→
01/19 18:33, , 52F
01/19 18:33, 52F
→
01/19 22:50, , 53F
01/19 22:50, 53F
→
01/20 01:19, , 54F
01/20 01:19, 54F
→
01/20 01:20, , 55F
01/20 01:20, 55F
→
01/20 01:20, , 56F
01/20 01:20, 56F
推
01/20 13:31, , 57F
01/20 13:31, 57F
→
01/20 13:32, , 58F
01/20 13:32, 58F
推
01/20 18:07, , 59F
01/20 18:07, 59F
※ 編輯: celestialgod (36.233.51.224), 11/20/2016 14:57:44
R_Language 近期熱門文章
PTT數位生活區 即時熱門文章