label of variables in DTA file [message #14915] |
Tue, 15 May 2018 07:02 |
alice.b
Messages: 3 Registered: January 2018 Location: Toulouse
|
Member |
|
|
Dear Madam, Sir,
I am working with the DHS datasets (about domestic violence). I manage to download the different datasets by country (in DTA format). I see in the DTA files that the labels of the variables are present (like "date of interview", "region", etc just below the abbreviate variables. But when I open the file with the R command:
dta=read.dta(AFCR70FL.DTA, convert.factors = FALSE) or dta=read.dta(AFCR70FL.DTA, convert.factors = TRUE)
I can vizualize the dta file but the long name of the variables are not present anymore. Is there any way to retain the name of the different columns after opening the fiel?
Many thanks in advance for your help,
Alice
AB
|
|
|