Hello,
I need to import a data set.
I have never imported data files with R. I have always worked on simulated data.
I have looked at R Data Import/Export manual.
It is a bit peculiar because my data base is already an R object called "japan".
I guess it is not yet a data set, and I don't know how to manipulate variables
from it.
When I type "japan", here is an extract of what I get.
LDP NFP SKG JCP gender education age1 80 75 80 0 male 1
752 75 80 50 20 female 1 643 100 25 100 0 male 2
564 75 50 25 50 male 2 525 75 50 50 0 male 4
52
I have saved the following objet in a file called "japan.RData". Then I have
tried the following instructions :
read.table(file="japan.RData",header = FALSE, sep = "")
I get the following result :
" V11 \037\bWarning message:readTableHeader a trouvé une ligne finale
incomplète dans 'japan.RData' "
which means probably "has found the last lign incomplete", I am not too sure...
What can I do ? I want to get variables such LDP, NFP, SKG, JCP, gender,
education, and age. How can I do that ?
Thank you very much.
_________________________________________________________________
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.