2014-10-15から1日間の記事一覧

Rで時系列データの読込み

sentdex.comで配布されてるデータ sentdex.com/GBPUSD.zip tb <- read.table("GBPUSD1d.txt",sep=',',colClasses=c("character","numeric","numeric")) df <- data.frame(strptime(tb$V1,"%Y%m%d%M%S"),tb$V2,tb$V3) names(df) <- c("time","bid","ask")こん…

Rでカラムの型を指定して読み込む

http://qiita.com/dokokano_panda/items/f12d1d2e4c7f63020440(例) tb <- read.table("GBPUSD1d.txt",sep=',',colClasses=c("character","numeric","numeric"))