Learn R Programming

mbgraphic (version 1.0.1)

datatype: Description of the datatype of variables

Description

Simple calculations to describe the datatype of variables and quantify the degree of discreteness.

Usage

datatype(x, limit = 0.8)

Arguments

x

A vector, a numeric matrix or a data frame.

limit

The limit used to define if a variable is treated as discrete or continous, depending on the value of discrete1d.

Value

A data frame with the following variables:

numeric

A logical value. Is variable of mode "numeric"?

discrete

Value of function discrete1d.

valdisc

A logical value. Is variable discrete under the given definition of discreteness?

See Also

discrete1d

Examples

Run this code
# NOT RUN {
data(Election2005)
datatype(Election2005[,1:10])
# }

Run the code above in your browser using DataLab