assign_tag_freq: Assign tag frequency

Description Usage Arguments Value

Description

Used in exploratory_setup() and variable_setup() for creating the tag-based variables. This function takes each tag in the input vector, and matches it to the corresponding frequency in the input data frame. Arguments are from the output of the tag_frequency function.

Usage

1
assign_tag_freq(tag, tagdf)

Arguments

tag

vector of tags

tagdf

data frame of tags and tag frequencies (output from tag_frequency function)

Value

Returns a numeric vector corresponding to the frequency of each tag in the input vector. Questions with no tags are assigned a frequency of 0.


loshita/oshitar documentation built on May 8, 2019, 11:12 p.m.