Announcement

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

  • Rename second variable

    To automate, I would like to get the name of the second variable in the current oder and then rename it. How to get this?

  • #2
    Code:
    ds
    tokenize `r(varlist)'
    di "`2'"

    Comment


    • #3
      Code:
      mata : st_varrename(2, "newname")
      This approach seems error prone.

      Comment

      Working...
      X