Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Append force option

    Hi, Statalist!
    I am appending several datasets and in the middle Stata stopped and said
    variable nationality is str2 in master but int in using data
    You could specify append's force option to ignore this string/numeric mismatch. The using variable would then be treated as if it contained " ".
    r(106)

    The force option says "force allows string variables to be appended to numeric variables and vice versa, resulting in missing values from the using dataset.".

    Is there a way to permit Stata to continue to append, but not generating missing values in this variable?

  • #2
    Yes, you may just "correct" the string/numeric mismatch before appending.
    Best regards,

    Marcos

    Comment


    • #3
      how could I specify append's force option to ignore this numeric/string mismatch in stata?

      Comment

      Working...
      X