私はこの質問に答えようとしており、tidyr を使用してデータを収集しています。これにより RStudio がクラッシュし、ターミナルから取得した場合もクラッシュします。
ターミナルのエラーから次のようになります。
> head(df2)
*** caught segfault ***
address 0x18, cause 'memory not mapped'
Traceback:
1: format.POSIXlt(x[[i]], ..., justify = justify)
2: format(x[[i]], ..., justify = justify)
3: format.data.frame(x, digits = digits, na.encode = FALSE)
4: as.matrix(format.data.frame(x, digits = digits, na.encode = FALSE))
これは私が実行しているスクリプトです:
DF <- structure(list(Time = structure(1:5, .Label = c( '2015-03-10T11:25:35Z','2015-03-10T11:25:40Z','2015-03-10T11:25:41Z','2015-03-10T11:25:42Z','2015-03-10T11:25:43Z'), class = "factor"), Bid = c(6118.5, 6118.5, 6119.5, 6119, 6119), Offer= c(6119.5, 6119.5, 6119.5, 6120, 6119.5)), .Names = c("Time", "Bid", "Offer"), row.names = c(NA, -5L), class = "data.frame")
DF$Time <- strptime(DF$Time, format = "%Y-%m-%dT%H:%M:%SZ", tz = "UTC")
require(ggplot2)
require(tidyr)
df2 <- gather(DF, type, value, -Time)
head(df2)
POSIX でデータを収集することはできますか?
編集して追加sessionInfo()
> sessionInfo()
R version 3.1.3 (2015-03-09)
Platform: i686-pc-linux-gnu (32-bit)
Running under: Ubuntu 14.04.2 LTS
other attached packages:
[1] tidyr_0.2.0