Announcement

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

  • How to extract one variable from a string?

    We have a dataset of different movies but genres contain more than one variable. For example, under the var genre, each movie can be "fantasy, horror, action" all together. how to make stata
    extract only one var?
    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	13.7 KB
ID:	1537875

  • #2
    And what would that "one variable" be?

    Code:
    help split
    .may solve your problem; otherwise I think we need more detail on the results you want.


    Comment

    Working...
    X