Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upcreate_report fails due to empty data object after na.omit #74
Comments
|
Would you mind sharing the structure of the data, e.g., |
|
I am having the exact same error when I attempt to create a report as well. I converted my dataset to all factors and numbers. I would assume there must be data other than numeric in the call for sum(ind). I broke out my data frame into factor and numeric only data frames. I am able to successfully generate a report on the numeric-only data frame. I am receiving the sum(ind) error on the data frame of all factor variables. When I replaced all NA values in the factor-only data frame to "test", I was able to successfully generate a report as well. UPDATE: After removing many columns I did not need, I was able to successfully create a report. I'm not sure which factor column and its data structure was causing the error unfortunately. |
|
The data I'm working with is unfortunately sensitive, so I can't provide a sample :/. Here's an obfuscated str() of the dataset:
Hope it's helpful |
|
I am having the same error, any possible fix found? |
|
Hi @NabeelahB without a reproducible example, it is kind of difficult to find the root cause. I was traveling for the past month, and will take some time to look into the issue soon. Apologies for any inconvenience. |
|
Have uploaded the file. Hope this helps |
|
@kmishra9 @DSQueen @NabeelahB create_report(
...,
config = list(
"introduce" = list(),
"plot_str" = list(
"type" = "diagonal",
"fontSize" = 35,
"width" = 1000,
"margin" = list("left" = 350, "right" = 250)
),
"plot_missing" = list(),
"plot_histogram" = list(),
"plot_bar" = list(),
"plot_boxplot" = list(),
"plot_scatterplot" = list()
)
)Note: The default config argument is this. See first example from config <- list(
"introduce" = list(),
"plot_str" = list(
"type" = "diagonal",
"fontSize" = 35,
"width" = 1000,
"margin" = list("left" = 350, "right" = 250)
),
"plot_missing" = list(),
"plot_histogram" = list(),
"plot_bar" = list(),
"plot_correlation" = list("use" = "pairwise.complete.obs"), ## Remove this
"plot_prcomp" = list(), ## Remove this
"plot_boxplot" = list(),
"plot_scatterplot" = list()
) |
|
Yup, that was my default solution. Thanks! |

Hey there,
I'm trying to generate some reports. Generation of these previously worked, but is no longer working with the same function calls.
Here's the traceback:
The error seems to be occurring specifically after correlation_analysis on multiple different datasets. Here's a screenshot: