Announcement

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

  • how to assure that 2 variables are the same?

    how to assure that 2 variables are the same?

  • #2
    Maybe something like
    Code:
    assert a == b
    for two variables, a and b.

    If you've got something more specific that you're wondering about, then reply.

    Comment


    • #3
      If on the other hand you are creating a new variable from an existing variable, and you want the variable label, value labels, format, and storage type to be the same for the new variable as they are for the existing variable, then
      Code:
      clonevar b = a

      Comment

      Working...
      X