openend_y2: Look at the frequencies of each word in an open end question

View source: R/openend_y2.R

openend_y2R Documentation

Look at the frequencies of each word in an open end question

Description

Breaks down an open ended question on spaces, giving you the frequencies of each word mentioned

Usage

openend_y2(dataset, variable, top_x = 50)

Arguments

dataset

no default. Usually piped in from your main dataset

variable

The name of the openended variable from your dataset you want to look at

top_x

DEFAULT = 50; Shows the top X most commonly mentioned words you want to see from the open-end

Examples

responses <- tibble::tibble(
  var1 = c(
    'I like to talk about dogs',
    'Dogs are cool but cats are aight too',
    'I prefer dogs over cats',
    "My dog's collars are always too tight",
    'One last sentence about dogs',
    'Cats collars are typically cooler than dogs'
  )
)

responses %>% openend_y2(var1)

nick-moffitt/y2artisan documentation built on May 5, 2024, 9:13 a.m.