I understand that subinstr can be used to replace a substring in a column
https://www.stata.com/statalist/arch.../msg00386.html
Code:
gen newvar = subinstr(oldvar,"dis","reg",.)
Code:
gen newvar = subinstr(oldvar,"`=char(10)'"," ",.) gen newvar2 = subinstr(newvar,"`=char(13)'"," ",.)
Also when thinking about next line character, are carriage return and line feed the only two I need to worry about, or are there other characters I am missing?
0 Response to How to replace the newline/nextline character in a column with space character
Post a Comment