Announcement

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

  • Clear Results (in Results Window, not memory)

    Hi

    Is there a way to use the command line (and thus a command in a do-file) to ask for the Results window to be fresh and clean?

    That is, doing the same as Edit > Clear Results, or right-clicking, Clear Results, but with a command. I've searched and returned home empty-handed.

    Guest
    Last edited by sladmin; 11 Dec 2017, 09:54. Reason: anonymize poster

  • #2
    Code:
     
    help cls

    Comment


    • #3
      !

      Thanks.

      Comment


      • #4
        1. I knew there was a dedicated command, so that's not much of a test.

        2. I guessed at cls, but given #1, that's not much of a test.

        3. However,

        Code:
        search clear
        does hit the target, so what key words did you use?

        Comment


        • #5
          help clear results

          Comment


          • #6
            That's the key difference between help and search.

            help is, at the limit, for when you know the answer already.

            search is for when you don't.

            f I want to do principal component analysis, then as I know that the Stata command is named pca, I go straight there for help.

            But if I didn't know the answer there are numerous plausible guesses. For example, I learned the other day that R uses princomp, which naturally is an entirely reasonable name. If I were a R user, primarily, then help princomp would be of precisely zero use in finding Stata's name, but search principal component gets there.

            Comment


            • #7
              I see...
              Still easy to fall into that trap. The menu item to select is Clear Results, so I assumed that's what I wanted...

              Thanks for your kind help.

              Comment

              Working...
              X