楼主:
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\""
有什么方法是读到第一个空白处才会分割 后面就不会继续切下去
谢谢指教