Hello everyone,
I have a question regarding creating a string variable. I have a document which contains ID and the story. For example:
001$"[begin]title: balabala...
time: balabala
place: balabala...
people: 3
balabala..
[end]"
002$[begin]title: balabala....
time: balabala
place: balabala...
people: 4
balabala...
balabala
[end]"
003$....
...
I want to have the multiple lines (between [begin] and [end]) in the story to become one single line and store it as a variable "story", and I also want to create variables for time, place, people, etc. How can I do that in Stata? Or should I use Python?
Thanks,
Yuqing
I have a question regarding creating a string variable. I have a document which contains ID and the story. For example:
001$"[begin]title: balabala...
time: balabala
place: balabala...
people: 3
balabala..
[end]"
002$[begin]title: balabala....
time: balabala
place: balabala...
people: 4
balabala...
balabala
[end]"
003$....
...
I want to have the multiple lines (between [begin] and [end]) in the story to become one single line and store it as a variable "story", and I also want to create variables for time, place, people, etc. How can I do that in Stata? Or should I use Python?
Thanks,
Yuqing
Comment