is_likert: is a factor a likert scale

Description Usage Arguments Value Examples

View source: R/is_likert.R

Description

is a factor a likert scale

Usage

1
is_likert(vec, lev)

Arguments

vec

a factor

lev

le scale

Value

boolean

Examples

1
2
3
is_likert(iris$Species,c("setosa","versicolor","virginica"))
is_likert(iris$Species,c("setosa","versicolor","virginica","banana"))
is_likert(iris$Species,c("setosa","versicolor"))

ThinkR-open/ThinkR documentation built on July 4, 2018, 12:17 p.m.