This function imports Israeli census data from spss .por files distributed by the CBS.
importData(source)
importData("raw")#> Error in read.spss(file, use.value.labels = use.value.labels, to.data.frame = to.data.frame, max.value.labels = max.value.labels, reencode = reencode): unable to open file: 'No such file or directory'importData("saved")#> Warning: cannot open file '../dataframes/exp2004s.txt': No such file or directory#> Error in file(filename, "r"): cannot open the connectionimportData("family")#> Error in read.spss(file, use.value.labels = use.value.labels, to.data.frame = to.data.frame, max.value.labels = max.value.labels, reencode = reencode): unable to open file: 'No such file or directory'importData("writeOutEXP")#> Warning: cannot open file '../dataframes/exp2004s.txt': No such file or directory#> Error in file(file, "wt"): cannot open the connectionimportData("combine")#> Error in merge(exp2004s, fam2004s, by = "HHNUM"): object 'exp2004s' not foundimportData("writeOutCombined")#> Warning: cannot open file '../dataframes/data2004.txt': No such file or directory#> Error in file(file, "wt"): cannot open the connectionimportData("importExpFamInd")#> Warning: cannot open file '../dataframes/expFamInd2004.txt': No such file or directory#> Error in file(filename, "r"): cannot open the connectionimportData("importCombined")#> Warning: cannot open file '../dataframes/data2004.txt': No such file or directory#> Error in file(filename, "r"): cannot open the connection