addDataAssociation {sms} | R Documentation |
addDataAssociation
Description
Create a data lexicon for holding the associated column names
Usage
addDataAssociation(indf, data_names)
Arguments
indf |
A data Lexicon (data.frame) created from the function: |
data_names |
A vector vith two elements. The first element should be the name of
the |
Value
indf The imported data lexicon with one extra column.
Author(s)
Dimitris Kavroudakis dimitris123@gmail.com
Examples
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)
[Package sms version 2.3.1 Index]