The strL data type is clearly useful, but the fact that it can't be used for a merge is breaking
backward compatibility with Stata 15 and earlier. I don't know if strL is new to Stata16, or if
Stata16 is just more aggressive about using it as a data type.
My prior code is breaking because variables that were formerly `str##` are now being read by Stata
as `strL`, so they cannot be used as merge keys. My research team has written about 200,000 lines of
Stata code over the last 10 years, and these breakages are happening left and right. In many cases,
the efficiency replacement is not remotely worth it-- today some code broke while running a string
replacement using a replacement file that was only 10 strings in length.
In this specific case, the 10-line string file was imported with `import delimited`, and Stata
defaulted the key string to strL, breaking the merge.
I know I can recast these to the `str##` format, but I would like to avoid updating our codebase in
thousands of places.
Ideally, I would like to ask Stata to avoid using the `strL` format except when I specifically
request it. Alternately, to avoid using the `strL` in cases when the string length is less than some
character length, like 100.
Can this be done?
Thank you!
-p
Related Posts with Can strL be disabled? It is breaking all my pre-16 code.
Generating a new variable conditional on multiple values - using 'or' command?Hey, I Hope someone can help me with this: I have a dataset of households in various zip codes. I w…
IV Regression Panel Data - xtivreg - lagged VariablesHello, I am working with StataIC16 and the panel data set mathpnl**, for the years 1992 - 1998- I w…
How do I export multiple diagnostic tests to one .csv table?Hello STATAlist friends! I'm working with STATA 15 on a project validating a several tests to gold s…
Store tab command's resultsHi all! I created a variable indicating in which income decile individuals of a population are. I t…
How to export my Stata result in target?Hi Statalisters, During my coding work, I want to export my result in real time in whatever file fo…
Subscribe to:
Post Comments (Atom)
0 Response to Can strL be disabled? It is breaking all my pre-16 code.
Post a Comment