作者:
ryansun (誠實)
2014-03-16 21:11:35請問我有一段話 形式大概如這樣
comment: "it is nice and great"
想把comment與"it is nice and great"分別存在兩個變數裡
我試著用下列code做
test=readLines("123.txt")
strsplit(test, " ")
但結果是只要遇到空白就會切開
[1] "comment:" "\"it" "is" "nice" "and" "great\""
有什麼方法是讀到第一個空白處才會分割 後面就不會繼續切下去
謝謝指教