Skip to content

Commit

Permalink
Correcting typos found in html diagnosis report, and if also detected…
Browse files Browse the repository at this point in the history
… in other files.

Job Informations > Job Information.
Other levles > Other levels.
Recommend > Recommendation.
Distirubution > Distribution.

Files in dlookr/docs/articles/ were not updated.
  • Loading branch information
jkennedyie committed May 29, 2024
1 parent 566bcda commit 057852f
Show file tree
Hide file tree
Showing 35 changed files with 67 additions and 67 deletions.
12 changes: 6 additions & 6 deletions R/html_diagnose.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ html_toprank <- function(.data, variable = NULL, drop_variable = FALSE) {
summarise(top_freq = sum(freq), .groups = "drop") %>%
mutate(other_freq = N - top_freq) %>%
filter(other_freq > 0) %>%
mutate(levels = "Other levles",
mutate(levels = "Other levels",
N = N,
freq = other_freq,
ratio = freq / N,
Expand All @@ -85,7 +85,7 @@ html_toprank <- function(.data, variable = NULL, drop_variable = FALSE) {
# Render a bar chart in the background of the cell
bar_style <- function(width = 1, fill = "#e6e6e666", levels = NULL) {
fill <- ifelse(levels %in% "Missing", "#cdcdcd99", fill)
fill <- ifelse(levels %in% "Other levles", "#0072bc66", fill)
fill <- ifelse(levels %in% "Other levels", "#0072bc66", fill)

position <- paste0(width * 100, "%")
image <- sprintf("linear-gradient(90deg, %1$s %2$s, transparent %2$s)",
Expand Down Expand Up @@ -152,7 +152,7 @@ html_paged_toprank <- function(.data, top = 10, type = "n", variable = NULL,
summarise(top_freq = sum(freq), .groups = "drop") %>%
mutate(other_freq = N - top_freq) %>%
filter(other_freq > 0) %>%
mutate(levels = "Other levles",
mutate(levels = "Other levels",
N = N,
freq = other_freq,
ratio = freq / N,
Expand Down Expand Up @@ -540,7 +540,7 @@ html_missing <- function(tab, grade = c("Good" = 0.05, "OK" = 0.1,
diagn_missing,
defaultColDef = colDef(style = "font-size: 14px;color: hsl(0, 0%, 40%);"),
columns = list(
variables = colDef(name = "Variables"),
variables = colDef(name = "Variable"),
missing_count = colDef(name = "Missing",
width = 120,
format = colFormat(separators = TRUE)),
Expand All @@ -560,7 +560,7 @@ html_missing <- function(tab, grade = c("Good" = 0.05, "OK" = 0.1,
tagList(badge, value)
}),
recommend = colDef(
name = "Recommend"
name = "Recommendation"
)
)
)
Expand Down Expand Up @@ -730,7 +730,7 @@ html_outlier <- function(.data, theme = c("orange", "blue")[1],
height = 400, device = grDevices::png)

shiny::tabsetPanel(
shiny::tabPanel("Distirubution", p_outlier,
shiny::tabPanel("Distribution", p_outlier,
hr(style = "border-top: 1px solid black;"),
style = "padding-top:5px; padding-bottom:25px;"),
shiny::tabPanel("Statistics", outlier_df,
Expand Down
12 changes: 6 additions & 6 deletions R/report.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ eda_paged_report <- function(.data, ...) {
#' \itemize{
#' \item Data Structures
#' \item Data Types
#' \item Job Informations
#' \item Job Information
#' }
#' \item Warnings
#' \item Variables
Expand Down Expand Up @@ -276,7 +276,7 @@ diagnose_web_report.data.frame <- function(.data, output_file = NULL, output_dir
#' \item Overview
#' \itemize{
#' \item Data Structures
#' \item Job Informations
#' \item Job Information
#' \item Warnings
#' \item Variables
#' }
Expand Down Expand Up @@ -602,7 +602,7 @@ diagnose_paged_report.data.frame <- function(.data, output_format = c("pdf", "ht
#' \itemize{
#' \item Data Structures
#' \item Data Types
#' \item Job Informations
#' \item Job Information
#' }
#' \item Univariate Analysis
#' \itemize{
Expand Down Expand Up @@ -847,7 +847,7 @@ eda_web_report.data.frame <- function(.data, target = NULL, output_file = NULL,
#' \item Overview
#' \itemize{
#' \item Data Structures
#' \item Job Informations
#' \item Job Information
#' }
#' \item Univariate Analysis
#' \itemize{
Expand Down Expand Up @@ -1141,7 +1141,7 @@ eda_paged_report.data.frame <- function(.data, target = NULL, output_format = c(
#' \itemize{
#' \item Data Structures
#' \item Data Types
#' \item Job Informations
#' \item Job Information
#' }
#' \item Imputation
#' \itemize{
Expand Down Expand Up @@ -1353,7 +1353,7 @@ transformation_web_report <- function(.data, target = NULL, output_file = NULL,
#' \item Overview
#' \itemize{
#' \item Data Structures
#' \item Job Informations
#' \item Job Information
#' }
#' \item Imputation
#' \itemize{
Expand Down
8 changes: 4 additions & 4 deletions R/report_tbl_dbi.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#' \itemize{
#' \item Data Structures
#' \item Data Types
#' \item Job Informations
#' \item Job Information
#' }
#' \item Warnings
#' \item Variables
Expand Down Expand Up @@ -161,7 +161,7 @@ diagnose_web_report.tbl_dbi <- function(.data, output_file = NULL, output_dir =
#' \item Overview
#' \itemize{
#' \item Data Structures
#' \item Job Informations
#' \item Job Information
#' \item Warnings
#' \item Variables
#' }
Expand Down Expand Up @@ -340,7 +340,7 @@ diagnose_paged_report.tbl_dbi <- function(.data, output_format = c("pdf", "html"
#' \itemize{
#' \item Data Structures
#' \item Data Types
#' \item Job Informations
#' \item Job Information
#' }
#' \item Univariate Analysis
#' \itemize{
Expand Down Expand Up @@ -477,7 +477,7 @@ eda_web_report.tbl_dbi <- function(.data, target = NULL, output_file = NULL,
#' \item Overview
#' \itemize{
#' \item Data Structures
#' \item Job Informations
#' \item Job Information
#' }
#' \item Univariate Analysis
#' \itemize{
Expand Down
12 changes: 6 additions & 6 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ The contents of the report are as follows.:
+ Data Structures
+ Data Structures
+ Data Types
+ Job Informations
+ Job Information
+ Warnings
+ Variables
* Missing Values
Expand Down Expand Up @@ -978,7 +978,7 @@ The contents of the report are as follows.:

* Overview
+ Data Structures
+ Job Informations
+ Job Information
+ Warnings
+ Variables
* Missing Values
Expand Down Expand Up @@ -1078,7 +1078,7 @@ The contents of the report are as follows.:
* Overview
+ Data Structures
+ Data Types
+ Job Informations
+ Job Information
* Univariate Analysis
+ Descriptive Statistics
+ Normality Test
Expand Down Expand Up @@ -1145,7 +1145,7 @@ The contents of the report are as follows.:

* Overview
+ Data Structures
+ Job Informations
+ Job Information
* Univariate Analysis
+ Descriptive Statistics
+ Numerical Variables
Expand Down Expand Up @@ -1236,7 +1236,7 @@ The contents of the report are as follows.:
* Overview
+ Data Structures
+ Data Types
+ Job Informations
+ Job Information
* Imputation
+ Missing Values
+ Outliers
Expand Down Expand Up @@ -1296,7 +1296,7 @@ The contents of the report are as follows.:

* Overview
+ Data Structures
+ Job Informations
+ Job Information
* Imputation
+ Missing Values
+ Outliers
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2067,7 +2067,7 @@ The contents of the report are as follows.:
- Data Structures
- Data Structures
- Data Types
- Job Informations
- Job Information
- Warnings
- Variables
- Missing Values
Expand Down Expand Up @@ -2156,7 +2156,7 @@ The contents of the report are as follows.:

- Overview
- Data Structures
- Job Informations
- Job Information
- Warnings
- Variables
- Missing Values
Expand Down Expand Up @@ -2273,7 +2273,7 @@ The contents of the report are as follows.:
- Overview
- Data Structures
- Data Types
- Job Informations
- Job Information
- Univariate Analysis
- Descriptive Statistics
- Normality Test
Expand Down Expand Up @@ -2349,7 +2349,7 @@ The contents of the report are as follows.:

- Overview
- Data Structures
- Job Informations
- Job Information
- Univariate Analysis
- Descriptive Statistics
- Numerical Variables
Expand Down Expand Up @@ -2457,7 +2457,7 @@ The contents of the report are as follows.:
- Overview
- Data Structures
- Data Types
- Job Informations
- Job Information
- Imputation
- Missing Values
- Outliers
Expand Down Expand Up @@ -2527,7 +2527,7 @@ The contents of the report are as follows.:

- Overview
- Data Structures
- Job Informations
- Job Information
- Imputation
- Missing Values
- Outliers
Expand Down
12 changes: 6 additions & 6 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/diagnose_paged_report.data.frame.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/diagnose_paged_report.tbl_dbi.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/diagnose_web_report.data.frame.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/diagnose_web_report.tbl_dbi.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/eda_paged_report.data.frame.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/eda_paged_report.tbl_dbi.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/eda_web_report.data.frame.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/eda_web_report.tbl_dbi.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/transformation_paged_report.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/transformation_web_report.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 057852f

Please sign in to comment.