Announcement

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

  • drop and cap drop mixed variables

    Dear all, I have one concern about the command drop or cap drop.
    for example:
    Code:
    sysuse auto,clear
    drop price make abc
    As price and make are variables contained while abc is not. cap drop faces the similar problem. How could I drop price and make although abc spies in it? One method is using "tokenize" and cap drop variable. I now wonder if there's a more convenient way?
    2B or not 2B, that's a question!

  • #2
    https://www.statalist.org/forums/for...e-is-in-a-list seems to be the same question in essence.

    Comment


    • #3
      Originally posted by Nick Cox View Post
      https://www.statalist.org/forums/for...e-is-in-a-list seems to be the same question in essence.
      This is awesome. Thank you so much,Nick!
      2B or not 2B, that's a question!

      Comment

      Working...
      X