detect_factor: Factors detect whether the input is a character

Description Usage Arguments Value Examples

View source: R/detect_factor.R

Description

If the input is a character, print "input is a character" If the input is a factor, print "Input is a factor"

Usage

1

Arguments

the

parameter you want to detect

Value

"input is a character"/ "Input is a factor"

Examples

1
detect_factor(factor(c("a", "a", "b"))) "Input is a factor"

STAT545-UBC-students/hw07-Sukeysun documentation built on May 24, 2019, 7:53 a.m.