file_dataset_format: Returns what the dataset file ending should be for a given...

View source: R/utils.R

file_dataset_formatR Documentation

Returns what the dataset file ending should be for a given filename

Description

Returns what the dataset file ending should be for a given filename

Usage

file_dataset_format(file_format)

Arguments

file_format

FileFormat for a file as taken from the API, e.g. dhs_datasets(returnFields = "FileFormat")

Value

One of "dat","dat","sas7bdat","sav" or "dta"

Examples

file_format <- "Stata dataset (.dta)"
identical(rdhs:::file_dataset_format(file_format),"dta")


rdhs documentation built on Nov. 21, 2023, 5:07 p.m.