Hello,
I would like to slip a string variable right after a certain word appear, but the word is not the same for each observation. This words is recorded in the variable "parcing". The variable I want should look like this. "hola adios"
"ciao adios"
"yes bye ciao adios hola"
"Thank you
Clear
input strL content str12 parcing
"hello yes bye ciao hola adios" "ciao"
"hello hola yes ehy bye ciao adios" "bye"
"hello yes bye ciao adios hola" "hello"
end
I would like to slip a string variable right after a certain word appear, but the word is not the same for each observation. This words is recorded in the variable "parcing". The variable I want should look like this. "hola adios"
"ciao adios"
"yes bye ciao adios hola"
"Thank you
Clear
input strL content str12 parcing
"hello yes bye ciao hola adios" "ciao"
"hello hola yes ehy bye ciao adios" "bye"
"hello yes bye ciao adios hola" "hello"
end
Comment