Description Usage Arguments Note Author(s) Examples
Returns the text of an enumerator document as a character vector indexed numerically by XML "textID" tags or, if specified, opens the file in Word (or system default program).
1 |
sample |
A PMA sample |
female_q |
Logical: defaults FALSE. If TRUE, function gets the file associated with a sample's female questionnaire, rather than its household questionnaire. |
mnh_wave |
Optional: one of f, f1, f2, f3, or hh. |
open |
Logical: defaults FALSE. If true, the file will be opened in Word (or system default program), and not returned. |
path |
Optional: The full path to the desired file may be provided as an alternative to the other arguments |
name_tag |
Logical: defaults FALSE. If TRUE, function returns only the name of the enum file with "_tag" appended (for use in data dictionary tagging) |
The function enum_make is to be used for creating new enum documents from ODK files.
Matt Gunther
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ## Not run:
# Default: Opens household questionnaire
enum_get("in2016a_hh")
# Opens female questionnaire
enum_get("in2016a_hh", female_q = T)
# Default: Opens SDP questionnaire
enum_get("in2016a_sp")
# Default: Opens hh nutrition questionnaire
enum_get("bf2018a_nh")
# Opens female nutrition questionnaire
enum_get("bf2018a_nh", female_q = T)
# Opens MNH wave 1
enum_get("et2016a_mn", mnh_wave = "f1")
# Opens MNH female screening questionnaire
enum_get("et2016a_mn", mnh_wave = "f")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.