Closed nsteed15 closed 4 months ago
Hi @m7pr you helped me with a similar error. I am wondering if you have any suggestions for me for this?
Hello @Nolan-Steed, It looks like an issue with the filter panel, not the module. This was already logged and fixed. However, this fix is only available in the development version of teal.slice
0.5.1.9001
and above.
Currently, the recommendation is not to have empty strings in the columns of your datasets. You can use the tern::df_explicit_na
function to convert all the ""
into <Missing>
or something that will not type cast into NA
. Once this change is made, it could fix this error in your app.
Below you can find a snippet from Dony's comment:
x <- data.frame(
a = factor(c("", "Y", "", "Y")),
b = LETTERS[1:4]
)
x <- tern::df_explicit_na(x)
x
#> a b
#> 1 <Missing> A
#> 2 Y B
#> 3 <Missing> C
#> 4 Y D
you rock @vedhav
Thank you @vedhav for your response. This fixes the issue I am having with my app.
What happened?
When I try applying the filter of
ANL03FL = 'Y'
I get this error. I get this when trying to add the filter for any of the variableANL01FL
orANL02FL
.Here is my module code
I am trying to apply the
anl03fl
to this modulesessionInfo()
Relevant log output
No response
Code of Conduct
Contribution Guidelines
Security Policy