getType: Get Type

Description Usage Arguments Value Author(s) Examples

View source: R/get_type.R

Description

getType

Usage

1
getType(vec)

Arguments

vec

A vector of any choice, to detect between numeric or character

Value

type of the given vector

Author(s)

Jayachandra N

Examples

1
2
3
4
5
getType(iris$Species)
getType(as.factor(c(1,0,1,1,0,NA,1, NULL)))
getType(as.factor(c(1, NULL,0,1,1,0,1,'a')))
getType(c(1,2,3,4, NA))
getType(letters[1:4])

shinyr documentation built on Oct. 21, 2021, 5:07 p.m.