list the first few rows in Stata
Asked Answered
F

1

8

I have used R quite a bit and I know I can use head(data[,"column"]) or head(data) to see the first few rows/cells of data.

How can I do that in Stata?

Foggia answered 2/8, 2011 at 8:6 Comment(0)
C
12

You can use the list command for this:

list column in 1/6

or

list in 1/6

If you have a look at help list, you will discover plenty of options to customize the display.

Corselet answered 2/8, 2011 at 8:49 Comment(1)
One of the reasons people ask questions on SO is because the included documentation is not clear. So in this case help list might seem like a great idea, but the result is fairly incomprehensible. The documentation is SATA is not stellar.Vercelli

© 2022 - 2024 — McMap. All rights reserved.