import_labels: import labels function

Description Usage Arguments Value Author(s) See Also Examples

Description

A function to import SPSS ® style labels and attach them to a dataset in R. Formatting instructions can be found in the PDF provided in the "See Also" section.

Usage

1
import_labels(dataset, definitions)

Arguments

dataset

= path of the file containing the raw data (i.e. 1, and 0's not "YES" and "NO"). The file format currently accepted is .csv and .txt

definitions

= path of the file containing definitions. The format of this file is shown below in table 1. File must be a .txt.

Value

Returns dataset with attached labels

Author(s)

Jordan L. Prendez, jordanprendez@gmail.com

See Also

https://github.com/nietsnel/inst.research/blob/master/import_labels_example1.pdf

Examples

1
2
3
import_labels(dataset="C:/Users/jprendez/Desktop/ic2015.csv", definitions="C:/Users/jprendez/Desktop/definitions.txt")
import_labels()
Note:SPSS® is a registered trademarks of IBM in the United States.

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