Learn R Programming

qdap (version 2.2.1)

key_merge: Merge Demographic Information with Person/Text Transcript

Description

Wrapper function (merge) for merging demographic information with a person/text transcript.

Usage

key_merge(transcript.df, key.df, common.column = NULL,
  defualt.arrange = TRUE)

Arguments

transcript.df
The text/person transcript dataframe
key.df
The demographic dataframe.
common.column
The column(s) shared by transcript.df and key.df. If NULL function defaults to use any columns with the same name.
defualt.arrange
logical. If TRUE will arrange the columns with text to the far right.

Value

  • Outputs a merged transcript dataframe with demographic information.

See Also

merge

Examples

Run this code
#First view transcript dataframe and demographics dataframe.
ltruncdf(list(raj, raj.demographics), 10, 50)
merged.raj <- key_merge(raj, raj.demographics)
htruncdf(merged.raj, 10, 40)

Run the code above in your browser using DataLab