You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into this issue where inspect_num() is not able to handle cases when the numeric variable has a different range in the comparison data set df2. It seems the histogram breaks are computed on the range seen in df1 alone and then applied to df2 rather than computed on the range of df1 and df2 jointly.
Here's a minimal reprex:
library(inspectdf)
data("starwars", package="dplyr")
starwars1<-starwars[, "height"]
starwars2<-starwars[, "height"] +100
inspect_num(starwars1, starwars2)
#> Error in hist.default(col_i, plot = FALSE, right = TRUE, breaks = hist_breaks): some 'x' not counted; maybe 'breaks' do not span range of 'x'
Hi Alastair,
I ran into this issue where
inspect_num()
is not able to handle cases when the numeric variable has a different range in the comparison data setdf2
. It seems the histogram breaks are computed on the range seen indf1
alone and then applied todf2
rather than computed on the range ofdf1
anddf2
jointly.Here's a minimal reprex:
Created on 2023-07-07 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: