45. > # t
> pc <- unlist(subset(statusDF,
+ statusSource %in% c("YoruFukurou", "web"),
+ textLength))
> sp <- unlist(subset(statusDF,
+ grepl("(iPhone|Android)", statusSource),
+ textLength))
> t.test(sp, pc, var.equal = FALSE)
Welch Two Sample t-test
!!
data: sp and pc
t = -15.7921, df = 1588.246, p-value < 2.2e-16
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-19.85334 -15.46645
sample estimates:
mean of x mean of y
31.83945 49.49935
46. > # t
> pc <- unlist(subset(statusDF,
+ statusSource %in% c("YoruFukurou", "web"),
+ textLength))
> sp <- unlist(subset(statusDF,
+ grepl("(iPhone|Android)", statusSource),
+ textLength))
> t.test(sp, pc, var.equal = FALSE)
Welch Two Sample t-test
!!
data: sp and pc
t = -15.7921, df = 1588.246, p-value < 2.2e-16
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-19.85334 -15.46645
sample estimates:
mean of x mean of y
31.83945 49.49935
59. qplot geom
geom
area:
bar:
histogram:
line:
point:
qplot(wday, data = statusDF, geom = "point", stat = "bin",
colour = statusSource, xlab = "", ylab = "")
60. qplot position
position geom
dodge :
fill : 1
jitter :
stack :
61. qplot position
position geom
dodge :
fill : 1
jitter :
stack :
qplot(wday, data = statusDF, fill = statusSource,
position = "dodge", xlab = "", ylab = "")
62. qplot position
position geom
dodge :
fill : 1
jitter :
stack :
qplot(wday, data = statusDF, fill = statusSource,
position = "fill", xlab = "", ylab = "")
63. qplot position
position geom
dodge :
fill : 1
jitter :
stack :
qplot(wday, data = statusDF, fill = statusSource,
position = "jitter", xlab = "", ylab = "")
64. qplot position
position geom
dodge :
fill : 1
jitter :
stack :
qplot(wday, data = statusDF, fill = statusSource,
position = "stack", xlab = "", ylab = "")
98. RMeCab
MeCab R
> library(RMeCab)
> (docDF(data.frame(" "), column = 1, type = 1))
number of extracted terms = 5
now making a data frame. wait a while!
TERM POS1 POS2 Row1
1 1
2 1
3 1
4 2
5 2