[問題類型]:
如題
[軟體熟悉度]:
新手,接觸R約兩個月
[問題敘述]:
本人目前在練習data mining,手邊有個app click log的資料
格式如下
uid system command DataTimes
1 ios 0 2013/5/7 10:44
1 ios 10 2013/5/7 10:45
2 android 0 2013/5/7 10:50
2 android 10 2013/5/7 10:51
3 ios 0 2013/5/7 10:58
3 ios 20 2013/5/7 10:59
.
.
.
想請問
因為我要把整筆資料操作次數過少的使用者清掉
於是我整理了一個uidlist
是click次數超過n次的uidlist
之後我做了下面這個指令
data1 <- data[data$uid %in% uidlist,]
點開data1確實留下click次數超過n的資料
但我後來輸入
barchart(data1$uid)
顯示出的長條圖中被移除的uid還是存在
有點像是
uid
1 ============
2 ====
3 =
4
5 ===================
6
7 ===
8 =
9 =======
0 5 10
Feq
像uid 4跟6明明被移掉了卻還是會顯示
不知道為何
想請問為什會這樣及如何確實移除?
如有描述不清楚或不完全,我會立即補充謝謝!!
[環境敘述]:
R version 3.2.1 (2015-06-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=Chinese (Traditional)_Taiwan.950
[2] LC_CTYPE=Chinese (Traditional)_Taiwan.950
[3] LC_MONETARY=Chinese (Traditional)_Taiwan.950
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Traditional)_Taiwan.950
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
other attached packages:
[1] lattice_0.20-31 arules_1.1-9 Matrix_1.2-1
loaded via a namespace (and not attached):
[1] tools_3.2.1 grid_3.2.1
[關鍵字]: