Hi, I notice that read.spss store variables' labels into df's attributes as $variable.labels, while write.dta read df's attribute $var.labels as variable labels. This becomes a problem when I try to convert a bulk of SPSS's por files into STATA's dta format using these commands. The data were successfully imported but write.dta couldn't read variable labels due to the inconsistency. This problem is solved after adding $var.labels into df's attributes.
I think it will be great if write.dta can read either $var.labels or $variable.labels as variable labels. What do you think? Best, Ellie [[alternative HTML version deleted]] ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel