The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use (other programs) » label of variables in DTA file
label of variables in DTA file [message #14915] Tue, 15 May 2018 07:02 Go to previous message
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
 
Read Message
Read Message
Previous Topic: DHS recode manual in excel format?
Next Topic: Opening dataset in SAS studio
Goto Forum:
  


Current Time: Thu Nov 28 10:42:51 Coordinated Universal Time 2024