My input vector
'salesman snow "rain check" "Radio shack"'
The answer I'm looking for
"salesman" "snow" "rain check" "Radio shack"
tried to
strsplit(vector, " ")
Like this?
> gsub('"', '', regmatches(vector, gregexpr('"[^\\"]*"|(\\S+)', vector))[[1]]) [1] "salesman" "snow" "rain check" "Radio shack"
Source: https://habr.com/ru/post/973283/More articles:Shader to mow the edges of the cube? - unity3dIndexes of type Error: list must be integers, not str, when parsing json - jsonGet permutation as a function of a unique given index in O (n) - pythonEnabling C # 6 in ASP.VNext projects in Visual Studio CTP2 - c # -6.0Is ggplot2 an easy way to wrap text annotations? - rRecursion with C - cEuler's Decision No. 31 at Haskell - haskellGet the best Entity Framework 6 performance like Dapper.NET - performanceNested Gilla Gorilla router not working - goI can not connect Android Wear Device via Bluetooth - android-wearAll Articles