read csv file
using read.csv to read csv file from website
title=readLines("http://www.twse.com.tw/exchangeReport/STOCK_DAY_ALL?response=csv")[1]
x=read.csv("http://www.twse.com.tw/exchangeReport/STOCK_DAY_ALL?response=csv",skip=1)
x=read.csv("http://www.twse.com.tw/exchangeReport/STOCK_DAY_ALL?response=csv",skip=1)
library(DT)
cat(title)
cat(title)
## "106年11月03日 當日日成交資訊 (股)"
datatable(x)
Show 10 entries
Search:
證券代號
|
證券名稱
|
成交股數
|
成交金額
|
開盤價
|
最高價
|
最低價
|
收盤價
|
漲跌價差
|
成交筆數
|
X
| |
340
|
2103
|
台橡
|
629,589
|
21,501,494
|
34.30
|
34.35
|
34.05
|
34.25
|
-0.20
|
457
| |
376
|
2328
|
廣宇
|
3,127,991
|
79,999,962
|
25.55
|
25.90
|
25.35
|
25.45
|
-0.05
|
1,501
| |
488
|
2482
|
連宇
|
63,197
|
797,501
|
12.60
|
12.70
|
12.60
|
12.70
|
0.00
|
30
| |
501
|
2498
|
宏達電
|
4,476,308
|
307,777,244
|
69.00
|
69.80
|
68.10
|
68.10
|
-0.40
|
2,599
| |
503
|
2501
|
國建
|
144,003
|
2,446,847
|
17.05
|
17.10
|
16.90
|
17.05
|
0.00
|
77
| |
606
|
2908
|
特力
|
501,318
|
11,308,082
|
22.65
|
22.70
|
22.45
|
22.60
|
-0.05
|
150
| |
703
|
3501
|
維熹
|
921,718
|
57,738,416
|
63.00
|
63.70
|
61.60
|
62.70
|
-0.30
|
588
| |
736
|
3682
|
亞太電
|
2,373,501
|
23,746,660
|
10.00
|
10.05
|
10.00
|
10.00
|
0.00
|
583
| |
761
|
4426
|
利勤
|
249,501
|
13,797,801
|
55.40
|
55.50
|
55.10
|
55.50
|
+0.40
|
182
| |
768
|
4552
|
力達-KY
|
501,010
|
51,472,040
|
103.00
|
104.00
|
102.00
|
102.50
|
0.00
|
338
|
Showing 1 to 10 of 11 entries (filtered from 1,031 total entries)
沒有留言:
張貼留言