Tell me more ×
Cross Validated is a question and answer site for statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.

I open a .sav file in PSPP (an open-source alternativ to SPSS) with

get file=...sav

Now I would like to see how many rows there exist.

share|improve this question
"I cannot guarantee..." sentence is hard to understand. Give more details that would be in line with SPSS. – ttnphns Mar 14 '12 at 14:00

1 Answer

up vote 2 down vote accepted

show n in regular old SPSS would do what you want. It doesn't appear to be in the list of commands for PSPP though.

Another possibility would be to compute your own variable based on the casenumber ($casenum), and then print the maximum casenumber. Something like below would do this.

compute #mynumber = $casenum.
freq var #mynumber /format = notable /statistics = maximum.

I think you have to have the variable defined before running a frequency (i.e. I don't think you can do freq var $casenum.). I don't have PSPP around to check, so let me know if this works in that program.

share|improve this answer
1. "show n" does not work in PSPP, 2. Your code works! 3. "freq var $casenum." does not work as you guessed – alfonx Mar 14 '12 at 14:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.