Roderick Harrison
2008-Aug-25 16:39 UTC
[R] R for Windows GUI closes when I try to read.spss
** High Priority ** I have been trying to read an SPSS file into R using read.spss ("C:/Documents and Settings/Roderick Harrison/My Documents/RWORK/ihisdat.sav", use.value.labels = TRUE, to.data.frame FALSE, max.value.labels = 500, trim.factor.names = FALSE, trim_values TRUE, reencode = NA, use.missings = to.data.frame) Each time (at least 5 or 6 by now) I get the following Microsoft error message and the R-Console crashes. R for Windows GUI front-end has encountered a problem and needs to close. We are sorry for the inconvenience. I would greatly appreciate help with this as we need to use R to estimate confidence intervals for NHIS data, and our deliverable is due this week. Thanks in advance.
Roderick Harrison wrote:> ** High Priority ** >Well to you, it is... In general people on this list are happy to help, but you need to supply them with something to go on, and there is just nothing here. At the very least, we'd need version numbers and preferably an example of a file that cannot load. On the off-hand guess that you might not have installed R 2.7.2 yet, you might want to try that since it has a couple of changes in read.spss relative to the foreign package from 2.7.1.> I have been trying to read an SPSS file into R using > > read.spss ("C:/Documents and Settings/Roderick Harrison/My > Documents/RWORK/ihisdat.sav", use.value.labels = TRUE, to.data.frame > FALSE, max.value.labels = 500, trim.factor.names = FALSE, trim_values > TRUE, reencode = NA, use.missings = to.data.frame) >use.missings needs to be TRUE or FALSE, though. It _defaults_ to the same as to.data.frame.> Each time (at least 5 or 6 by now) I get the following Microsoft error > message and the R-Console crashes. > > R for Windows GUI front-end has encountered a problem and needs to > close. We are sorry for the inconvenience. > > I would greatly appreciate help with this as we need to use R to > estimate confidence intervals for NHIS data, and our deliverable is due > this week. > > Thanks in advance. > > ______________________________________________ > R-help at r-project.org 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. >-- O__ ---- Peter Dalgaard ?ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
Roderick Harrison
2008-Aug-25 21:44 UTC
[R] R for Windows GUI closes when I try to read.spss
** High Priority ** Cavan - the message I sent to r-help The packages I load are foreign and SPSSDDI and survey - survey won't be used, however, until we're actually trying to calculate the confidence intervals in R Thanks for taking time out to help with this I have been trying to read an SPSS file into R using read.spss ("C:/Documents and Settings/Roderick Harrison/My Documents/RWORK/ihisdat.sav", use.value.labels = TRUE, to.data.frame FALSE, max.value.labels = 500, trim.factor.names = FALSE, trim_values TRUE, reencode = NA, use.missings = to.data.frame) Each time (at least 5 or 6 by now) I get the following Microsoft error message and the R-Console crashes. R for Windows GUI front-end has encountered a problem and needs to close. We are sorry for the inconvenience. I would greatly appreciate help with this as we need to use R to estimate confidence intervals for NHIS data, and our deliverable is due this week. Thanks in advance.
N'DOYE Souleymane
2008-Aug-26 05:20 UTC
[R] R for Windows GUI closes when I try to read.spss
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?... Nom : non disponible URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20080826/327f5cdb/attachment.pl>
Roderick Harrison
2008-Aug-26 16:43 UTC
[R] R for Windows GUI closes when I try to read.spss
Can't thank you enough! This worked!>>> "N'DOYE Souleymane" <ndoye.souleymane at gmail.com> 8/26/2008 1:20 AM >>>Hi Roderick, Let me suggest you to save your spss file in txt, and use the read.table or read.csv fonction. That is how I proceed. I hope it will help you, Best regards On Mon, Aug 25, 2008 at 7:39 PM, Roderick Harrison < RHarrison at jointcenter.org> wrote:> ** High Priority ** > > I have been trying to read an SPSS file into R using > > read.spss ("C:/Documents and Settings/Roderick Harrison/My > Documents/RWORK/ihisdat.sav", use.value.labels = TRUE, to.data.frame > FALSE, max.value.labels = 500, trim.factor.names = FALSE, trim_values > TRUE, reencode = NA, use.missings = to.data.frame) > > Each time (at least 5 or 6 by now) I get the following Microsoft error > message and the R-Console crashes. > > R for Windows GUI front-end has encountered a problem and needs to > close. We are sorry for the inconvenience. > > I would greatly appreciate help with this as we need to use R to > estimate confidence intervals for NHIS data, and our deliverable is due > this week. > > Thanks in advance. > > ______________________________________________ > R-help at r-project.org 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. >-- Souleymane N'DOYE, M.Sc. Statistician Engineer & Decision Support System Consultant www.labstatconseil.com souleymane.ndoye at labstatconseil.com P.O. Box 1601 * 00606 Sarit Center, Nairobi, Kenya Mobile : +254 736 842 478.