new_leem | R Documentation |
Function that assists other functions of leem package
new_leem(x, variable = "discrete")
x |
R object (vector as data structure). |
variable |
Type of data. If |
The variable
argument also allows using variable = 1
for categorical variable and variable = 2
for continuous variable.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.