Announcement

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

  • count the number of string variable

    I was wondering if there exists a function or command that counts the number of string variables in the dataset. I currently just found the c(k) that count the number of variables, but it is not possible to specify an option or "if" of any sort.

  • #2
    Code:
    ds, has(type string)
    di `: word count `r(varlist)''
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment

    Working...
    X