I think you are using an spss file. You want to follow this:
http://www.ats.ucla.edu/stat/r/notes/entering.htm
Read.spss(xxx.sav) after you have loaded the foreign package.
Good luck.
EXL
On 1/28/10 4:21 PM, "Yousuf" <usuf.marvi at gmail.com> wrote:
I am trying to load my data table in R, but its giving me some trouble. The data was
forwarded to me by somebody and its in (.sav) format. I downloaded the foreign package to
make sure that it would recognize this extension, but it doesn't seem like the
problem is with the extension. It might be the file. I am getting the following error:
"Warning message:
In read.table("NIUA_final_dataset.sav") :
incomplete final line found by readTableHeader on
'NIUA_final_dataset.sav'"
This is the command that I typed:
dataset <- read.table("NIUA_final_dataset.sav")
I also typed the "load" command and it gave me an error too.
HELP!
--
ERIC LIN
Technology and Operations Management
Harvard Business School
Boston, MA 02163
elin at
hbs.edu