a <- "dog cat carrot cabbage"
b <- "orange cat chair cabbage"
c <- "dog phone book beach"
x <- data.frame(a,b,c)
> x
a b c
1 dog cat carrot cabbage orange cat chair cabbage dog phone book beach
因此,這是建立在列。我想要的是一個1列數據框,每個字符串作爲一行。我會怎麼做?如何構建明智的數據框架而不是明智的列?
此代碼會產生錯誤。 – Megatron
修復了代碼。 – mkearney