Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

is.discrete

Determine if a vector is discrete.


Description

A discrete vector is a factor or a character vector

Usage

is.discrete(x)

Arguments

x

vector to test

Examples

is.discrete(1:10)
is.discrete(c("a", "b", "c"))
is.discrete(factor(c("a", "b", "c")))

plyr

Tools for Splitting, Applying and Combining Data

v1.8.6
MIT + file LICENSE
Authors
Hadley Wickham [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.