Title: | Load Data for Analysis System |
Version: | 1.3.0 |
Description: | Provides a framework to load text and excel files through a 'shiny' graphical interface. It allows renaming, transforming, ordering and removing variables. It includes basic exploratory methods such as the mean, median, mode, normality test, histogram and correlation. |
License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
Imports: | DT, caret, config, writexl, echarts4r, grDevices, shinyAce, shinyjs, readxl, golem, rlang, htmltools, data.table, htmlwidgets, colourpicker, shinydashboard, shiny (≥ 1.7.1), shinycustomloader, shinydashboardPlus (≥ 2.0.0) |
Depends: | R (≥ 4.0) |
Encoding: | UTF-8 |
URL: | https://promidat.website, https://github.com/PROMiDAT/loadeR |
BugReports: | https://github.com/PROMiDAT/loadeR/issues |
RoxygenNote: | 7.3.2 |
Language: | en-US |
NeedsCompilation: | no |
Packaged: | 2024-10-24 16:58:12 UTC; r583594 |
Author: | Oldemar Rodriguez [aut, cre], Diego Jiménez [aut], Joseline Quirós [aut] |
Maintainer: | Oldemar Rodriguez <oldemar.rodriguez@ucr.ac.cr> |
Repository: | CRAN |
Date/Publication: | 2024-10-24 22:00:02 UTC |
Read Data System
Description
Provides a framework to load text and excel files through a 'shiny' graphical interface. It allows renaming, transforming, ordering and removing variables. It includes basic exploratory methods such as the mean, median, mode, normality test, histogtram and correlation.
Details
Package: | loadeR |
Type: | Package |
Version: | 1.3.0 |
Date: | 2024-10-24 |
License: | GPL (>=2) |
Author(s)
Maintainer: Oldemar Rodriguez Rojas <oldemar.rodriguez@ucr.ac.cr>
Oldemar Rodriguez Rojas <oldemar.rodriguez@ucr.ac.cr>
Diego Jiménez Alvarado
Joseline Quirós Mendez
See Also
Useful links:
Report bugs at https://github.com/PROMiDAT/loadeR/issues
Add outliers Horizontal
Description
Add outliers Horizontal
Usage
addoutliersh(e, serie, i)
Load data from text file.
Description
Load data from text file.
Usage
carga.datos(
nombre.filas = TRUE,
ruta = NULL,
separador = ";",
sep.decimal = ",",
encabezado = TRUE,
deleteNA = TRUE,
preview = FALSE
)
Arguments
nombre.filas |
a logical value indicating whether the file contains the names of the rows as its first column. |
ruta |
the name of the file which the data are to be read from. |
separador |
the field separator character. |
sep.decimal |
the character used in the file for decimal points. |
encabezado |
a logical value indicating whether the file contains the names of the variables as its first line. |
deleteNA |
a logical value indicating if rows with NA should be removed. |
preview |
a logical value indicating if only load the first 10 rows. |
Value
A data.frame object with the information of a file.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
tf <- tempfile()
write.table(iris, tf, sep = ";", dec = ",", row.names = FALSE)
carga.datos(ruta = tf, nombre.filas = FALSE, preview = TRUE)
Load data from excel.
Description
Load data from excel.
Usage
carga.datos.excel(
ruta,
sheet = 1,
header = TRUE,
startRow = 0,
startCol = 0,
endRow = 0,
endCol = 0,
row_names = TRUE,
deleteNA = TRUE,
preview = FALSE
)
Arguments
ruta |
the name of the file which the data are to be read from. |
sheet |
The name or index of the worksheet to read from. |
header |
a logical value indicating whether the file contains the names of the variables as its first line. |
startRow |
The index of the first row to read from. Defaults to 0 meaning that the start row is determined automatically. |
startCol |
The index of the first column to read from. Defaults to 0 meaning that the start column is determined automatically. |
endRow |
The index of the last row to read from. Defaults to 0 meaning that the end row is determined automatically. |
endCol |
The index of the last column to read from. Defaults to 0 meaning that the end column is determined automatically. |
row_names |
a logical value indicating whether the file contains the names of the rows as its first column. |
deleteNA |
a logical value indicating if rows with NA should be removed. |
preview |
a logical value indicating if only load the first 10 rows. |
Value
A data.frame object with the information of a file on excel.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
tf <- tempfile()
writexl::write_xlsx(iris, paste0(tf, ".xlsx"), TRUE)
carga.datos.excel(ruta = paste0(tf, ".xlsx"), row_names = FALSE, preview = TRUE)
HTML for show code on shiny application.
Description
HTML for show code on shiny application.
Usage
codigo.monokai(id, height)
Arguments
id |
The input slot that will be used to access the value. |
height |
The height of the input, e.g. '400px', or '100vh'. |
Value
An HTML element.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
codigo.monokai("id", "70vh")
Create disjunctive columns to a data.frame.
Description
Create disjunctive columns to a data.frame.
Usage
datos.disyuntivos(data, var)
Arguments
data |
a data.frame object. |
var |
the column name to apply disjunctive code. |
Value
A data.frame object after apply disjunctive code.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
datos.disyuntivos(iris, "Species")
Back disjunctive column to original.
Description
Back disjunctive column to original.
Usage
devolver.disyuntivos(data, var)
Arguments
data |
a data.frame object. |
var |
the column name that is disyunctive. |
Value
A data.frame object before apply disjunctive code.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
r <- datos.disyuntivos(iris, "Species")
devolver.disyuntivos(r, "Species")
Data.frame with normal test values.
Description
Data.frame with normal test values.
Usage
dfnormal(data)
Arguments
data |
a data.frame object only with the numeric columns. |
Value
A data.frame.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
dfnormal(iris[, -5])
Generate horizontal boxplot
Description
Generate horizontal boxplot
Usage
e_boxplot(e, serie, name = NULL, outliers = TRUE, ...)
Correlation plot
Description
Correlation plot
Usage
e_cor(x, colors = c("#FF5733", "#F8F5F5", "#2E86C1"))
Arguments
x |
a data.frame with correlation values. |
colors |
a vector of lenght 3 with color values. |
Value
echarts4r plot.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
p <- round(cor(iris[, -5]), 3)
e_cor(p)
Histogram + boxplot
Description
Histogram + boxplot
Usage
e_histboxplot(
data,
var.name,
colorBar = "steelblue",
colorPoint = "red",
titulos = c("Minimo", "Primer Cuartil", "Mediana", "Tercer Cuartil", "Maximo")
)
Arguments
data |
a numeric column of a data.frame. |
var.name |
a character value specifying the name of the variable. |
colorBar |
a color for the bars. |
colorPoint |
a color for the points. |
titulos |
a character vector of length 5 specifying the titles to use on legend. |
Value
echarts4r plot.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
e_histboxplot(iris$Sepal.Width, "Sepal.Width")
Normal plot
Description
Normal plot
Usage
e_histnormal(
data,
colorbar = "steelblue",
colorline = "gray",
nombres = c("Histograma", "Curva Normal")
)
Arguments
data |
a numeric column of a data.frame. |
colorbar |
a color for the bars. |
colorline |
a color for the line. |
nombres |
a character vector of length 2 specifying the titles to use on legend. |
Value
echarts4r plot.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
e_histnormal(iris$Sepal.Length)
Qplot + Qline
Description
Qplot + Qline
Usage
e_qq(data, colorpoint = "steelblue", colorline = "gray")
Arguments
data |
a numeric column of a data.frame. |
colorpoint |
a color for the points. |
colorline |
a color for the line. |
Value
echarts4r plot.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
e_qq(iris$Sepal.Length)
Information box.
Description
Information box.
Usage
infoBoxPROMiDAT(titulo, valor, icono)
Arguments
titulo |
Title text. |
valor |
The value to display in the box. Usually a number or short text. |
icono |
An icon tag, created by icon. |
Value
An HTML element.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
library(shiny)
infoBoxPROMiDAT("Title", "Value", icon("info"))
Create a label that can be used to show text.
Description
Create a label that can be used to show text.
Usage
labelInput(inputId, value = "")
Arguments
inputId |
The input slot that will be used to access the value. |
value |
Initial value. |
Value
An HTML element.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
labelInput("id", "data")
Returns a vector of keys to translate with tr.
Description
Returns a vector of keys to translate with tr.
Usage
labels_loadeR()
Value
a vector of keys.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
labels_loadeR()
List outliers
Description
List outliers
Usage
listoutliers(e, out)
HTML for language menu.
Description
HTML for language menu.
Usage
menu.idioma()
Value
An HTML element.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
menu.idioma()
carga_datos Server Functions.
Description
carga_datos Server Functions.
Usage
mod_carga_datos_server(
id,
updateData,
modelos,
codedioma,
paquete = "predictoR"
)
Arguments
id |
Internal parameters for shiny. |
updateData |
shiny reactive values. |
modelos |
shiny reactive values. |
codedioma |
shiny reactive values. |
paquete |
indicates if the data is going to be used for exploratory, predictive, or regression analysis. |
Value
shiny server module.
Author(s)
Joseline Quiros <joseline.quiros@promidat.com>
carga_datos UI Function
Description
carga_datos UI Function
Usage
mod_carga_datos_ui(id, title, paquete = "predictoR")
Arguments
id |
Internal parameters for shiny. |
title |
Display title for tab. |
paquete |
indicates if the data is going to be used for exploratory, predictive, or regression analysis. |
Value
shiny ui module.
Author(s)
Joseline Quiros <joseline.quiros@promidat.com>
correlacion Server Function
Description
correlacion Server Function
Usage
mod_correlacion_server(id, updateData, codedioma)
Arguments
id |
Internal parameters for shiny. |
updateData |
shiny reactive values. |
codedioma |
shiny reactive values. |
Value
shiny server module.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
correlacion UI Function
Description
correlacion UI Function
Usage
mod_correlacion_ui(id)
Arguments
id |
Internal parameters for shiny. |
Value
shiny ui module.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
dispersion Server Function
Description
dispersion Server Function
Usage
mod_dispersion_server(id, updateData, codedioma)
Arguments
id |
Internal parameters for shiny. |
updateData |
shiny reactive values. |
codedioma |
shiny reactive values. |
Value
shiny server module.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
dispersion UI Function
Description
dispersion UI Function
Usage
mod_dispersion_ui(id)
Arguments
id |
Internal parameters for shiny. |
Value
shiny ui module.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
distribuciones Server Function
Description
distribuciones Server Function
Usage
mod_distribuciones_server(id, updateData, codedioma)
Arguments
id |
Internal parameters for shiny. |
updateData |
shiny reactive values. |
codedioma |
shiny reactive values. |
Value
shiny server module.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
distribuciones UI Function
Description
distribuciones UI Function
Usage
mod_distribuciones_ui(id)
Arguments
id |
Internal parameters for shiny. |
Value
shiny ui module.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
normal Server Function
Description
normal Server Function
Usage
mod_normal_server(id, updateData, codedioma)
Arguments
id |
Internal parameters for shiny. |
updateData |
shiny reactive values. |
codedioma |
shiny reactive values. |
Value
shiny server module.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
normal UI Function
Description
normal UI Function
Usage
mod_normal_ui(id)
Arguments
id |
Internal parameters for shiny. |
Value
shiny ui module.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
r_numerico Server Function
Description
r_numerico Server Function
Usage
mod_r_numerico_server(id, updateData, codedioma)
Arguments
id |
Internal parameters for shiny. |
updateData |
shiny reactive values. |
codedioma |
shiny reactive values. |
Value
shiny server module.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
r_numerico UI Function
Description
r_numerico UI Function
Usage
mod_r_numerico_ui(id)
Arguments
id |
Internal parameters for shiny. |
Value
shiny ui module.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Creates a button to use in a options menu.
Description
Creates a button to use in a options menu.
Usage
options.run(runid, label = "opts")
Arguments
runid |
The input slot that will be used to access the value. |
label |
A label on the top of the menu. |
Value
An HTML element.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
options.run("id")
Run the Shiny Application
Description
Run the Shiny Application
Usage
run_app(paquete = "predictoR", ...)
Arguments
paquete |
indicates if the data is going to be used for exploratory, predictive, or regression analysis. |
... |
A series of options to be used inside the app. |
Value
No return value, run a shiny application.
Tabset panel with options menu.
Description
Tabset panel with options menu.
Usage
tabBoxPrmdt(..., id = NULL, title = NULL, opciones = NULL, open = NULL)
Arguments
... |
tabPanel() elements to include in the tabset. |
id |
If provided, you can use input$id in your server logic to determine which of the current tabs is active. The value will correspond to the value argument that is passed to tabPanel(). |
title |
Text or input to add on the opposite side of the tabs. |
opciones |
list of html options to add on the footer of the tabset. |
open |
Class to assign first option, for example to start open. |
Value
An HTML element.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
library(shiny)
tabBoxPrmdt(id = "id", title = "title", tabPanel("Tab1"))
Options menu in footer for tabBoxPrmdt (tabsetPanel).
Description
Options menu in footer for tabBoxPrmdt (tabsetPanel).
Usage
tabsOptions(
botones = list(paste(labelInput("opts"), icon("gear"))),
widths = 100,
heights = 50,
tabs.content = list(""),
id = NULL
)
Arguments
botones |
list of icons to each option of the menu. Minimum 1, maximum 5. |
widths |
vector of widths to each option of the menu. Minimum 1, maximum 5. |
heights |
vector of heights to each option of the menu. Minimum 1, maximum 5. |
tabs.content |
list of UI elements to include within each menu option. Minimum 1, maximum 5. |
id |
If provided, you can use input$id in your server logic to get the element. |
Value
An HTML element.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
tabsOptions()
Returns a translate text (user defined).
Description
Returns a translate text (user defined).
Usage
tr(text, idioma = "es")
Arguments
text |
text to translate. |
idioma |
language to use. For example: "en". |
Value
a translate text.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
tr("data", "en")
Returns a list of sentences with their translation in different languages.
Description
Returns a list of sentences with their translation in different languages.
Usage
translation.loadeR()
Value
a list of sentences with their translation in different languages.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
translation.loadeR()
Change the value of a label input on the client.
Description
Change the value of a label input on the client.
Usage
updateLabelInput(session, labelid, value = NULL)
Arguments
session |
The session object passed to function given to shinyServer. Default is getDefaultReactiveDomain(). |
labelid |
The id of the input object. |
value |
Initial value. |
Value
An HTML element.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Filter category variables of a data.frame.
Description
Filter category variables of a data.frame.
Usage
var.categoricas(data)
Arguments
data |
a data.frame object. |
Value
A data.frame object only with its categoric variables.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
var.categoricas(iris)
Filter numeric variables of a data.frame.
Description
Filter numeric variables of a data.frame.
Usage
var.numericas(data)
Arguments
data |
a data.frame object. |
Value
A data.frame object only with its numeric variables.
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
var.numericas(iris)