mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
This commit is contained in:
parent
fb6f1a708d
commit
2065c9c800
7 changed files with 52 additions and 21 deletions
|
|
@ -4,7 +4,7 @@
|
|||
\alias{add_class_icon}
|
||||
\title{Convert class grid column to icon}
|
||||
\usage{
|
||||
add_class_icon(grid, column = "class")
|
||||
add_class_icon(grid, column = "class", fun = class_icons)
|
||||
}
|
||||
\arguments{
|
||||
\item{grid}{grid}
|
||||
|
|
|
|||
21
man/class_icons.Rd
Normal file
21
man/class_icons.Rd
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/data-summary.R
|
||||
\name{class_icons}
|
||||
\alias{class_icons}
|
||||
\title{Get data class icons}
|
||||
\usage{
|
||||
class_icons(x)
|
||||
}
|
||||
\arguments{
|
||||
\item{x}{character vector of data classes}
|
||||
}
|
||||
\value{
|
||||
list
|
||||
}
|
||||
\description{
|
||||
Get data class icons
|
||||
}
|
||||
\examples{
|
||||
"numeric" |> class_icons()|> str()
|
||||
mtcars |> sapply(class) |> class_icons() |> str()
|
||||
}
|
||||
|
|
@ -5,7 +5,6 @@
|
|||
\alias{cut_variable_ui}
|
||||
\alias{cut_variable_server}
|
||||
\alias{modal_cut_variable}
|
||||
\alias{winbox_cut_variable}
|
||||
\title{Module to Convert Numeric to Factor}
|
||||
\usage{
|
||||
cut_variable_ui(id)
|
||||
|
|
@ -19,13 +18,6 @@ modal_cut_variable(
|
|||
size = "l",
|
||||
footer = NULL
|
||||
)
|
||||
|
||||
winbox_cut_variable(
|
||||
id,
|
||||
title = i18n("Convert Numeric to Factor"),
|
||||
options = shinyWidgets::wbOptions(),
|
||||
controls = shinyWidgets::wbControls()
|
||||
)
|
||||
}
|
||||
\arguments{
|
||||
\item{id}{Module ID.}
|
||||
|
|
@ -47,10 +39,6 @@ pass \code{\link[bslib:bs_theme]{bslib::bs_theme()}} to the \code{theme} argumen
|
|||
like \code{\link[shiny:fluidPage]{fluidPage()}}).}
|
||||
|
||||
\item{footer}{UI for footer. Use \code{NULL} for no footer.}
|
||||
|
||||
\item{options}{List of options, see \code{\link[shinyWidgets:wbOptions]{wbOptions()}}.}
|
||||
|
||||
\item{controls}{List of controls, see \code{\link[shinyWidgets:wbControls]{wbControls()}}.}
|
||||
}
|
||||
\value{
|
||||
A \code{\link[shiny:reactive]{shiny::reactive()}} function returning the data.
|
||||
|
|
|
|||
21
man/type_icons.Rd
Normal file
21
man/type_icons.Rd
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/data-summary.R
|
||||
\name{type_icons}
|
||||
\alias{type_icons}
|
||||
\title{Get data type icons}
|
||||
\usage{
|
||||
type_icons(x)
|
||||
}
|
||||
\arguments{
|
||||
\item{x}{character vector of data classes}
|
||||
}
|
||||
\value{
|
||||
list
|
||||
}
|
||||
\description{
|
||||
Get data type icons
|
||||
}
|
||||
\examples{
|
||||
"ordinal" |> type_icons()
|
||||
default_parsing(mtcars) |> sapply(data_type) |> type_icons()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue