Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Individual Anscombe data sets are empty #4

Open
alexploner opened this issue Nov 8, 2024 · 1 comment · May be fixed by #5
Open

Individual Anscombe data sets are empty #4

alexploner opened this issue Nov 8, 2024 · 1 comment · May be fixed by #5

Comments

@alexploner
Copy link

After installing the current version (0.1.3) from github, everything seems to work as intendend, except that the individual Anscombe data sets (_leverage, '_linear`) etc. are empty:

library(quartets)
anscombe_leverage
# A tibble: 0 × 3
# ℹ 3 variables: dataset <chr>, x <dbl>, y <dbl>

This does not seem to be a case for the other data sets:

sapply(ls(2), function(x) nrow(get(x)))
         anscombe_leverage              anscombe_linear           anscombe_nonlinear             anscombe_outlier             anscombe_quartet 
                           0                            0                            0                            0                           44 
             causal_collider         causal_collider_time           causal_confounding      causal_confounding_time                causal_m_bias 
                         100                          100                          100                          100                          100 
          causal_m_bias_time              causal_mediator         causal_mediator_time               causal_quartet          causal_quartet_time 
                         100                          100                          100                          400                          400 
            datasaurus_dozen heterogeneous_causal_quartet         interaction_triptych             rashomon_quartet        rashomon_quartet_test 
                        1846                           88                         2700                         2000                         1000 
      rashomon_quartet_train     variation_causal_quartet 
                        1000                           88 
@malcolmbarrett
Copy link

Confirmed. This is because the filters in this file are using the old values for dataset but changed them a few lines before.

mutate(dataset = case_when(
dataset == 1 ~ "(1) Linear",
dataset == 2 ~ "(2) Nonlinear",
dataset == 3 ~ "(3) Outlier",
dataset == 4 ~ "(4) Leverage"
))
usethis::use_data(anscombe_quartet, overwrite = TRUE)
anscombe_linear <- anscombe_quartet |>
filter(dataset == 1)

@malcolmbarrett malcolmbarrett linked a pull request Nov 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants