this post 다음에 나는 data.table
에있는 목록의 열에 대해 다른 질문이 있습니다.data.table에서 열의 목록으로 키를 입력하는 방법
DT = data.table(x=list(c(1,2),c(1,2),c(3,4,5)))
목록의 열을 키를 사용할 수없는 것 같습니다.
DT[,y:=.I,by=x]
Erreur dans `[.data.table`(DT, , `:=`(y, .I), by = x) :
The items in the 'by' or 'keyby' list are length (2,2,3). Each must be same length as rows in x or number of rows returned by i (3).
는 내가 같은 길이의 목록과 수 있지만, 생각 :
DT = data.table(x=list(c(1,2),c(1,2),c(3,5)))
DT[,y:=.I,by=x]
Erreur dans `[.data.table`(DT, , `:=`(y, .I), by = x) :
The items in the 'by' or 'keyby' list are length (2,2,2). Each must be same length as rows in x or number of rows returned by i (3).
해결 방법이 있습니까? 기능 요청은 어떨까요?
예,'list'가 키 열로 (현재) 허용되지 않습니다. 'setkey (DT, "x") 할 때이 메시지를 받는다 – Arun