Description Usage Arguments Value Author(s) See Also Examples
A function to attach USM-MHEC variable labels to a file currently loaded to memory. Specifically, this file renames database style names to those more appropriate for reading and or tables.
1 2 |
dataset |
= name of the object (file) that you wish to rename with USM labels. |
label_values |
= TRUE (default). TRUE outputs your dataset with MHEC value labels attached. |
label_variables |
= TRUE (default). TRUE outputs your dataset with MHEC variable labels attached. |
labels_output |
= FALSE (default). TRUE outputs the labels used in the function. |
manual_label_input |
specify labels and definitions manually in R. [examples forthcoming] |
Returns dataset with USM value labels and or variable names attached (depending on selected option).
Jordan L. Prendez, jordanprendez@gmail.com
1 2 3 | usm_labels(dataset=my_dataset, label_values = TRUE, label_variables = FALSE)
data_def<- c("var.name_IDType" , 1, "Student", 2, "faculty", 3, "staff","var.name_USCitizen", 1, "Yes", 2, "No", "var.name_Degree", 40, "BA", 60, "MA", 81, "AA")
usm_labels(dataset=res2, label_variables = FALSE, label_values=FALSE, manual_label_input=data_def)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.