addDataAssociation: addDataAssociation

Description Usage Arguments Value Author(s) Examples

View source: R/sms.R

Description

Create a data lexicon for holding the associated column names

Usage

1
addDataAssociation(indf, data_names)

Arguments

indf

A data Lexicon (data.frame) created from the function: createLexicon

data_names

A vector vith two elements. The first element should be the name of the census data column, and the second element should be the name of the survey data column

Value

indf The imported data lexicon with one extra column.

Author(s)

Dimitris Kavroudakis [email protected]

Examples

1
2
3
4
5
6
7
library(sms)
data(survey)
data(census)
in.lexicon=createLexicon()
in.lexicon=addDataAssociation(in.lexicon, c("he","he"))
in.lexicon=addDataAssociation(in.lexicon, c("females","female"))
print(in.lexicon)

sms documentation built on May 1, 2019, 8:18 p.m.