Skip to content
Prev 30363 / 398513 Next

use of variable labels

On Tue, 8 Apr 2003, janet rosenbaum wrote:
as.data.frame(lapply(df,as.numeric))

would work if all your variables were either unlabelled or completely
labelled, but it doesn't seem any simpler than using convert.factors=FALSE
No, that is not the case.  I suspect you have variable labels
declared in Stata for these variables, it's just that the variables don't
take on those values.

read.dta does assume that if any value of a variable has a label then all
values should. It doesn't eg handle labels for different types of missing
on an otherwise numeric variable.

	-thomas