Message-ID: <CAL=F3iZx9jqVsL4arMHnFx1vD3jHC2wST08gWZnPu60G5Z8abA@mail.gmail.com>
Date: 2020-08-26T08:57:36Z
From: Elham Daadmehr
Subject: Importing data using Foreign
Hi all,
I have a simple problem. I get stuck in using the imported spss data (.sav)
using "read.spss".
I imported data (z) without any problem. After importing, the first column
doesn't contain any "NA". but when I choose a subset of it (like:
z[z[,8]=="11"|z[,8]=="12"|z[,8]=="14",]), lots of NA appears (even in the
first column).
The (.sav) file is the output of Compustat (WRDS).
It is terrible, I can't find the mistake.
Thank you in advance for your help,
Elham
[[alternative HTML version deleted]]