r - Separating Categorical Data Variable into Multiple Variables -


i have type of data (name: pmt4651) , want separate , keep answers independent elements (maybe in individual columns can create function count , analyze them):

2
{"q0":"an abstract musical score.\nan abandoned set of flagpoles.\na highway road sign right.\na shelf protruding wall.\n"}

3
{"q0":"an abstract flower.\na setup diagram orchestral percussionist.\na seating chart diagram wedding reception.\na magic wand.\na lollipop."}

i tried separate , strsplit function , separate them "\n" sign far failed. strsplit function received error note non-character argument. this: sub(pattern = "{"q0":"", replacement = "", x = pmt4651)

i tried remove symbols @ beginning of each row- because information don't need. however, failed well.

does have idea how can solve this?


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -