Learn R Programming

prevR (version 3.1)

import.dhs: Import DHS data.

Description

This step by step function guides users to import data from a Demographic and Health Survey (DHS) and create an object of class prevR.

Usage

import.dhs(file.sav, file.dbf)

Arguments

file.sav
DHS data (one individual per line) in SPSS format (.sav), downloaded from http://www.dhsprogram.com/. Could also be directly a data.frame.
file.dbf
GPS position of clusters in DATABASE format (.dbf), downloaded from http://www.dhsprogram.com/. Could also be directly a data.frame.

See Also

as.prevR, prevR-class.

Examples

Run this code
import.dhs("data.sav", "gps.dbf")

Run the code above in your browser using DataLab