2024-12-17 11:30:17 +01:00
|
|
|
% Generated by roxygen2: do not edit by hand
|
|
|
|
% Please edit documentation in R/cut-variable-dates.R
|
|
|
|
\name{cut-variable}
|
|
|
|
\alias{cut-variable}
|
|
|
|
\alias{cut_variable_ui}
|
|
|
|
\alias{cut_variable_server}
|
|
|
|
\alias{modal_cut_variable}
|
|
|
|
\title{Module to Convert Numeric to Factor}
|
|
|
|
\usage{
|
|
|
|
cut_variable_ui(id)
|
|
|
|
|
|
|
|
cut_variable_server(id, data_r = reactive(NULL))
|
|
|
|
|
|
|
|
modal_cut_variable(
|
|
|
|
id,
|
2025-05-10 13:02:31 +02:00
|
|
|
title = datamods:::i18n("Convert Numeric to Factor"),
|
2024-12-17 11:30:17 +01:00
|
|
|
easyClose = TRUE,
|
|
|
|
size = "l",
|
|
|
|
footer = NULL
|
|
|
|
)
|
|
|
|
}
|
|
|
|
\arguments{
|
|
|
|
\item{id}{Module ID.}
|
|
|
|
|
|
|
|
\item{data_r}{A \code{\link[shiny:reactive]{shiny::reactive()}} function returning a \code{data.frame}.}
|
|
|
|
|
|
|
|
\item{title}{An optional title for the dialog.}
|
|
|
|
|
|
|
|
\item{easyClose}{If \code{TRUE}, the modal dialog can be dismissed by
|
|
|
|
clicking outside the dialog box, or be pressing the Escape key. If
|
|
|
|
\code{FALSE} (the default), the modal dialog can't be dismissed in those
|
|
|
|
ways; instead it must be dismissed by clicking on a \code{modalButton()}, or
|
|
|
|
from a call to \code{\link[shiny:removeModal]{removeModal()}} on the server.}
|
|
|
|
|
|
|
|
\item{size}{One of \code{"s"} for small, \code{"m"} (the default) for medium,
|
|
|
|
\code{"l"} for large, or \code{"xl"} for extra large. Note that \code{"xl"} only
|
|
|
|
works with Bootstrap 4 and above (to opt-in to Bootstrap 4+,
|
|
|
|
pass \code{\link[bslib:bs_theme]{bslib::bs_theme()}} to the \code{theme} argument of a page container
|
|
|
|
like \code{\link[shiny:fluidPage]{fluidPage()}}).}
|
|
|
|
|
|
|
|
\item{footer}{UI for footer. Use \code{NULL} for no footer.}
|
|
|
|
}
|
|
|
|
\value{
|
|
|
|
A \code{\link[shiny:reactive]{shiny::reactive()}} function returning the data.
|
|
|
|
}
|
|
|
|
\description{
|
|
|
|
This module contain an interface to cut a numeric into several intervals.
|
|
|
|
}
|