On a related note, I wish python (specifically pandas) had Stata's [_n-1] notation.
When I learned R for the first time (or Stata for that matter) I tried to do almost everything with loops. Loops are my comfort zone, I learned them early in my programming career, write them very quickly, and they make a lot of sense to me, but they definitely are not always the best way to do things in a vectorized language. I wrote a project in Swift for the first time and kept finding myself wishing the UI elements behaved more like C#'s forms interface. That feeling that "I wish this language was more like a language I'm really familiar with" is very common, especially for beginners. In my experience it takes at least a year of regular practice before that feeling starts to go away. Python is missing a function composition operator and I bet most native python "speakers" don't even notice the feature is missing because it isn't how you do things in python.
You can always use python in Stata or do your data preprocessing directly in python if that's what you are used to.
When I learned R for the first time (or Stata for that matter) I tried to do almost everything with loops. Loops are my comfort zone, I learned them early in my programming career, write them very quickly, and they make a lot of sense to me, but they definitely are not always the best way to do things in a vectorized language. I wrote a project in Swift for the first time and kept finding myself wishing the UI elements behaved more like C#'s forms interface. That feeling that "I wish this language was more like a language I'm really familiar with" is very common, especially for beginners. In my experience it takes at least a year of regular practice before that feeling starts to go away. Python is missing a function composition operator and I bet most native python "speakers" don't even notice the feature is missing because it isn't how you do things in python.
You can always use python in Stata or do your data preprocessing directly in python if that's what you are used to.
Comment