0
字符串分割我有一個字符串用反斜槓
mystring <- "\"3.825"
我只想3.825出這一點。
我曾嘗試:
mystring <- strsplit(mystring, "\")# (error after completing with 3 double quotes)
mystring <- strsplit(mystring, "\\")# (error: invalid regular expression '\', reason 'Trailing backslash')
mystring <- strsplit(mystring, "\\\\")# (returns the string unchanged and unsplit)
不知道自己還能做些什麼