Being familiar with R, I'm wondering what is the Stata equivalent of vectors (e.g. var<-c(1,2,3,4)
)?
I know that Stata uses macros, but I don't get how you can store multiple values in one macro (create an array type of macro).
I want to loop over some strings and use them as patterns for matching regular expressions, like with subinword(columnA,pattern,"substitute",1)
.