我的輸出看起來像:轉換特徵向量的列表到數據幀
str(a)
List of 8883695
$ : chr [1:3] "20MICRONS" "A" "ACCRUALS"
$ : chr [1:3] "20MICRONS" "A" "ACCRUALS"
$ : chr [1:3] "20MICRONS" "A" "ACCRUALS"
$ : chr [1:3] "20MICRONS" "A" "ACCRUALS"
$ : chr [1:3] "20MICRONS" "A" "ACCRUALS"
$ : chr [1:3] "20MICRONS" "A" "ACCRUALS"
$ : chr [1:3] "20MICRONS" "A" "ACCRUALS"
$ : chr [1:3] "20MICRONS" "A" "ACCRUALS"
$ : chr [1:3] "20MICRONS" "A" "ACCRUALS"
$ : chr [1:3] "20MICRONS" "A" "ACCRUALS"
$ : chr [1:3] "20MICRONS" "A" "ACCRUALS"
$ : chr [1:3] "20MICRONS" "A" "ACCRUALS"
$ : chr [1:3] "20MICRONS" "A" "AE"
$ : chr [1:3] "20MICRONS" "A" "AE"
$ : chr [1:3] "20MICRONS" "A" "AE"
我打算將它轉換成像一個數據幀:
股票變頻領域
20微米一個權責發生制
20MICRONS A ACCRUALS
20MICONS A AE
20MICONS A AE
20微米A自動
20微米一個AE
我已經試過這樣:
b <- as.data.frame(a)
Error in sort.list(y) : 'x' must be atomic for 'sort.list'
Have you called 'sort' on a list?
但不工作。請幫忙。我是R和堆棧溢出的新手。
第1步。製作一個*小*示例以測試您的代碼。你有800萬這些。 – Spacedman