new_leem {leem} | R 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 |
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)
[Package leem version 0.2.0 Index]