I tried to convert my key variable "name" from strL to str# to merge two datasets.
However, the error code r(109) continues to occur.
I've tried the following:
. describe name
storage display value
variable name type format label variable label
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
name strL %-20s Name of owning party <party-name>
. gen len=length(name)
. summ len
Variable | Obs Mean Std. Dev. Min Max
-------------+---------------------------------------------------------
len | 21,022,429 22.72522 9.84456 1 818
. recast str818 name, force
name: str818 invalid
r(109);
Also, I tried to compress command then I obtained
. compress name
(0 bytes saved)
Does anyone have an idea to solve this problem?
Thanks in advance
Related Posts with convert strL to str#
Order option with interactions using esttabI am attempting to order the coefficients in my output using the "order" option, however, I cannot s…
Generating a date variable from a numeric variable after a reshapeHello. I'm working with a dataset that looks like this: company / numeric_date / v1 / v2 / .../ vk…
Moderation - Panel Data AnalysisDear Stata experts, I am trying to test the influence of my dummy moderator (high tech industry =1,…
metan forest plot formattingHello, As a novice Stata user I humbly seek insight from those more seasoned than myself with regar…
Which regression should I use?Hello everybody, I am stuck right now with the following problem. I have two hypothesis which I hav…
Subscribe to:
Post Comments (Atom)
0 Response to convert strL to str#
Post a Comment