usm_labels: usm_labels function

Description Usage Arguments Value Author(s) See Also Examples

Description

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.

Usage

1
2
usm_labels(dataset = NULL, label_values = TRUE, label_variables = TRUE,
  labels_output = FALSE, label_matrix = NULL, manual_label_input = NULL)

Arguments

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]

Value

Returns dataset with USM value labels and or variable names attached (depending on selected option).

Author(s)

Jordan L. Prendez, jordanprendez@gmail.com

See Also

Online example

Examples

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)

nietsnel/inst.research documentation built on May 23, 2019, 6 p.m.