mdl_vars_create_from_dta | R Documentation |
Starting from a Stata file (.dta), this function will create the variables metadata for a given survey. The function will calculate for each variable the main stats and get the variable labels when available.
mdl_vars_create_from_dta(
survey_idno,
file_path,
file_id = NA,
file_name,
file_description
)
survey_idno |
The unique identifier of an existing survey, e.g.: UNHCR_ETH_2020_SENS_v2.1 |
file_path |
Path to the dta file, e.g.: C:/path/to/file.dta |
file_id |
An unique identifier for the file containing the variables metadata. If not provided, the name of the file will be used. If provided, the ID should only include alphanumeric chars. This ID is not shown in the platform, it is mostly used for fetching or modifying the metadata in a second moment. |
file_name |
The name of the file containing the variables as you want it to be shown in the platform to the final user. |
file_description |
Brief description of the file, as you want it to be shown in the platform to the final user. |
API call response.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.