data.url <- "http://www.jpx.co.jp/files/tse/market/data/sector/equities_m/2014/stock_val_1_m1401.xls"
data <- read.xls(data.url,sheet=5,skip=19,method="tab",fileEncoding="UTF-8")
d14_1506<-na.omit(as.numeric(gsub(",","",data[1:38,7])))[1:12]/100000
data.url <- "http://www.jpx.co.jp/files/tse/market/data/sector/equities_m/2014/stock_val_1_m1402.xls"
data <- read.xls(data.url,sheet=5,skip=19,method="tab",fileEncoding="UTF-8")
d<-na.omit(as.numeric(gsub(",","",data[1:38,7])))[1:12]/100000
d14_1506<-rbind(d14_1506,d)
data.url <- "http://www.jpx.co.jp/files/tse/market/data/sector/equities_m/2014/stock_val_1_m1403.xls"
data <- read.xls(data.url,sheet=5,skip=19,method="tab",fileEncoding="UTF-8")
d<-na.omit(as.numeric(gsub(",","",data[1:38,7])))[1:12]/100000
d14_1506<-rbind(d14_1506,d)
data.url <- "http://www.jpx.co.jp/files/tse/market/data/sector/equities_m/2014/stock_val_1_m1404.xls"
data <- read.xls(data.url,sheet=5,skip=19,method="tab",fileEncoding="UTF-8")
d<-na.omit(as.numeric(gsub(",","",data[1:38,7])))[1:12]/100000
d14_1506<-rbind(d14_1506,d)
data.url <- "http://www.jpx.co.jp/files/tse/market/data/sector/equities_m/2014/stock_val_1_m1405.xls"
data <- read.xls(data.url,sheet=5,skip=19,method="tab",fileEncoding="UTF-8")
d<-na.omit(as.numeric(gsub(",","",data[1:38,7])))[1:12]/100000
d14_1506<-rbind(d14_1506,d)
data.url <- "http://www.jpx.co.jp/files/tse/market/data/sector/equities_m/2014/stock_val_1_m1406.xls"
data <- read.xls(data.url,sheet=5,skip=19,method="tab",fileEncoding="UTF-8")
d<-na.omit(as.numeric(gsub(",","",data[1:38,7])))[1:12]/100000
d14_1506<-rbind(d14_1506,d)
data.url <- "http://www.jpx.co.jp/files/tse/market/data/sector/equities_m/2014/stock_val_1_m1407.xls"
data <- read.xls(data.url,sheet=5,skip=19,method="tab",fileEncoding="UTF-8")
d<-na.omit(as.numeric(gsub(",","",data[1:38,7])))[1:12]/100000
d14_1506<-rbind(d14_1506,d)
data.url <- "http://www.jpx.co.jp/files/tse/market/data/sector/equities_m/2014/stock_val_1_m1408.xls"
data <- read.xls(data.url,sheet=5,skip=19,method="tab",fileEncoding="UTF-8")
d<-na.omit(as.numeric(gsub(",","",data[1:38,7])))[1:12]/100000
d14_1506<-rbind(d14_1506,d)
data.url <- "http://www.jpx.co.jp/files/tse/market/data/sector/equities_m/2014/stock_val_1_m1409.xls"
data <- read.xls(data.url,sheet=5,skip=19,method="tab",fileEncoding="UTF-8")
d<-na.omit(as.numeric(gsub(",","",data[1:38,7])))[1:12]/100000
d14_1506<-rbind(d14_1506,d)
data.url <- "http://www.jpx.co.jp/files/tse/market/data/sector/equities_m/2014/stock_val_1_m1410.xls"
data <- read.xls(data.url,sheet=5,skip=19,method="tab",fileEncoding="UTF-8")
d<-na.omit(as.numeric(gsub(",","",data[1:38,7])))[1:12]/100000
d14_1506<-rbind(d14_1506,d)
data.url <- "http://www.jpx.co.jp/files/tse/market/data/sector/equities_m/2014/stock_val_1_m1411.xls"
data <- read.xls(data.url,sheet=5,skip=19,method="tab",fileEncoding="UTF-8")
d<-na.omit(as.numeric(gsub(",","",data[1:38,7])))[1:12]/100000
d14_1506<-rbind(d14_1506,d)
data.url <- "http://www.jpx.co.jp/files/tse/market/data/sector/equities_m/2014/stock_val_1_m1412.xls"
data <- read.xls(data.url,sheet=5,skip=19,method="tab",fileEncoding="UTF-8")
d<-na.omit(as.numeric(gsub(",","",data[1:38,7])))[1:12]/100000
d14_1506<-rbind(d14_1506,d)
data.url <- "http://www.jpx.co.jp/markets/statistics-equities/investor-type/nlsgeu00000039tz-att/stock_val_1_m1501.xls"
data <- read.xls(data.url,sheet=5,skip=19,method="tab",fileEncoding="UTF-8")
d<-na.omit(as.numeric(gsub(",","",data[1:38,7])))[1:12]/100000
d14_1506<-rbind(d14_1506,d)
data.url <- "http://www.jpx.co.jp/markets/statistics-equities/investor-type/nlsgeu000000hlek-att/stock_val_1_m1502.xls"
data <- read.xls(data.url,sheet=5,skip=19,method="tab",fileEncoding="UTF-8")
d<-na.omit(as.numeric(gsub(",","",data[1:38,7])))[1:12]/100000
d14_1506<-rbind(d14_1506,d)
data.url <- "http://www.jpx.co.jp/markets/statistics-equities/investor-type/nlsgeu000000ukiy-att/stock_val_1_m1503.xls"
data <- read.xls(data.url,sheet=5,skip=19,method="tab",fileEncoding="UTF-8")
d<-na.omit(as.numeric(gsub(",","",data[1:38,7])))[1:12]/100000
d14_1506<-rbind(d14_1506,d)
data.url <- "http://www.jpx.co.jp/markets/statistics-equities/investor-type/nlsgeu000000xecb-att/stock_val_1_m1504.xls"
data <- read.xls(data.url,sheet=5,skip=19,method="tab",fileEncoding="UTF-8")
d<-na.omit(as.numeric(gsub(",","",data[1:38,7])))[1:12]/100000
d14_1506<-rbind(d14_1506,d)
data.url <- "http://www.jpx.co.jp/markets/statistics-equities/investor-type/nlsgeu000000ziuo-att/stock_val_1_m1505.xls"
data <- read.xls(data.url,sheet=5,skip=19,method="tab",fileEncoding="UTF-8")
d<-na.omit(as.numeric(gsub(",","",data[1:38,7])))[1:12]/100000
d14_1506<-rbind(d14_1506,d)
data.url <- "http://www.jpx.co.jp/markets/statistics-equities/investor-type/nlsgeu0000011pw4-att/stock_val_1_m1506.xls"
data <- read.xls(data.url,sheet=5,skip=19,method="tab",fileEncoding="UTF-8")
d<-na.omit(as.numeric(gsub(",","",data[1:38,7])))[1:12]/100000
d14_1506<-rbind(d14_1506,d)
doukou<-data.frame(d14_1506)
names(doukou)<-c("法人","個人","海外投資家","証券会社","投資信託","事業法人","その他法人等","金融機関","生保・損保","都銀・地銀等","信託銀行","その他金融機関")
save("doukou", file="doukou.RData")