1
data.frameへの最後のキャストが機能しないように見えるのはなぜですか?私はそれを並べ替えるしようとすると私が取得:OPのデータセットのError in order(temp[, 1], decreasing = T) : unimplemented type 'list' in 'orderVector1'
列をソートするためにdata.frameにキャストできません。実装されていない型リスト
data<-lapply(1:5,function(i){
lapply(1:5,function(j){
list(i=i,j=j)
})
})
temp<-as.data.frame(data)
temp<-matrix(temp,ncol=2,byrow=T)
head(temp,20)
temp<-data.frame(temp)
class(temp) #####IS A DATA.FRAME
temp<-temp[order(temp[,1],decreasing=T),]
から
CJ
を使用して。これを解決策として投稿してください。 – Rilcon42