new_leem: Constructor of object of leem class

View source: R/temporario1.R

new_leemR Documentation

Constructor of object of leem class

Description

Function that assists other functions of leem package

Usage

new_leem(x, variable = "discrete")

Arguments

x

R object (vector as data structure).

variable

Type of data. If discrete (default), the data are categorical (numeric or not). If continuous, the data are numeric.

Value

The variable argument also allows using variable = 1 for categorical variable and variable = 2 for continuous variable.

Examples

# Example 1
library(leem)
x <- rbinom(36, 10, 0.6)
new_leem(x, variable = 1)

# Example 2 (Pipe operator)
rnorm(36, 100, 4) |> new_leem(variable = 2)

leem documentation built on April 3, 2025, 6:04 p.m.

Related to new_leem in leem...