is.mynumeric: Decide whether a vector can be treated as a numeric variable

View source: R/fit2newdata.R

is.mynumericR Documentation

Decide whether a vector can be treated as a numeric variable

Description

Decide whether a vector can be treated as a numeric variable

Usage

is.mynumeric(x, maxy.lev = 5)

Arguments

x

A vector

maxy.lev

An integer indicating the maximum number of unique values of a numeric variable be treated as a categorical variable

Value

A logical value

Examples

x=1:5
is.mynumeric(x)
x=1:13
is.mynumeric(x)

cardiomoon/autoReg documentation built on Dec. 10, 2023, 1:59 a.m.