Skip to content

Update basic-concepts.Rmd - #293

Merged
spsanderson merged 1 commit into
mainfrom
development
Jun 8, 2026
Merged

Update basic-concepts.Rmd#293
spsanderson merged 1 commit into
mainfrom
development

Conversation

@spsanderson

Copy link
Copy Markdown
Owner

use reframe versus summarize in order to drop the error message output and correctly do the analysis.

use `reframe` versus `summarize` in order to drop the error message output and correctly do the analysis.
Copilot AI review requested due to automatic review settings June 8, 2026 16:25
@spsanderson
spsanderson merged commit 3449885 into main Jun 8, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the basic concepts vignette to change a grouped aggregation from summarize() to reframe() in an attempt to eliminate dplyr warning/error output during the “Verify Properties” worked example.

Changes:

  • Replaced summarize() with reframe() for the “Property 3: Distance ∝ √n” grouped calculation in vignettes/basic-concepts.Rmd.

Comment on lines +388 to 391
reframe(
mean_abs_position = mean(abs(cum_sum_y)),
theoretical = sqrt(2/pi) * sqrt(step_number) # Exact for normal
) |>
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 this pull request may close these issues.

2 participants