This function uses get_freq_table()
to get the frequencies for a set of variables
suppplied by the user. It then outputs these frequencies to a word doc.
Arguments
- data
An object of type data.frame or tibble. If piping the data into the function, this is not required.
- x
A vector of variables you want to get the frequencies for.
- group
A character string. The first grouping variable.
- wt
A character string. Add if you have a weighting variable and want to get weighted frequencies
- show_genpop
Logical. Should there be a column showing the frequencies for the general population
- file_name
A character string specifying the name of the file to be created with the frequencies and where the file will be located. File must end in .docx