did my code work? thanks On Mon, May 1, 2017 at 11:35 AM, <katharina.mandersch...@posteo.de> wrote:
> hi, thanks for the reply! > it always worked until 3.4.0. i got warning but they did not stop R > loading the file ... > > Am 01.05.2017 16:10 schrieb Anthony Damico: > >> hi, i don't think foreign::read.spss or haven::read_spss have ever >> worked with a handful of the ess files, but library(memisc) does. you >> are better off loading ess with library(lodown) because the drudge >> work has already been done-- >> >> library(devtools) >> devtools::install_github("ajdamico/lodown") >> library(lodown) >> ess_cat <- get_catalog( "ess" , output_dir = "C:/My Directory/ESS" >> ) >> >> # which entries do you want? >> head(ess_cat) >> >> # how about wave 7 only >> sub_ess_cat <- subset( ess_cat , wave == 7 ) >> >> # replace the email address with whatever you registered with >> lodown( "ess" , sub_ess_cat , your_email = "em...@address.com" ) >> >> x <- readRDS( "C:/My Directory/ESS/2014/ESS7csCH.rds" ) >> >> # looks good >> head( x ) >> >> On Mon, May 1, 2017 at 6:22 AM, <katharina.mandersch...@posteo.de> >> wrote: >> >> after updating R from 3.3.3. to 3.4.0 i cannot import spss-data >>> files anymore. for the european social survey >>> (europeansocialsurvey.org [1]) i get this warning: >>> re-encoding from CP1252 >>> Fehler in levels<-(*tmp*, value = if (nl == nL) >>> as.character(labels) else paste0(labels, : >>> factor level [3] is duplicated >>> Zusätzlich: Warnmeldung: >>> In read.spss(file, use.value.labels = use.value.labels, >>> to.data.frame = to.data.frame, : >>> //filepath/ESS7CH.sav: Unrecognized record type 7, subtype 18 >>> encountered in system file >>> >>> using the package foreign does the same. >>> >>> ______________________________________________ >>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >>> https://stat.ethz.ch/mailman/listinfo/r-help [2] >>> PLEASE do read the posting guide >>> http://www.R-project.org/posting-guide.html [3] >>> and provide commented, minimal, self-contained, reproducible code. >>> >> >> >> >> Links: >> ------ >> [1] http://europeansocialsurvey.org >> [2] https://stat.ethz.ch/mailman/listinfo/r-help >> [3] http://www.R-project.org/posting-guide.html >> > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.