Skip to content

Commit

Permalink
fixed missing L250 period in extensions.qmd file (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
cug-xyx authored Aug 23, 2023
1 parent ff77ea9 commit 223989d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ By default the top two functions don't do very much, they simply split the data

Because of this, the only method you usually need to specify as a developer is the `compute_group()` function, whose job is to take the data for a single group and transform it appropriately.
This will be sufficient to create a working stat, though it may not yield the best performance.
As a consequence developers sometimes find it valuable to offload some of the work to `compute_panel()` where possible: doing so allows you to vectorise computations and avoid an expensive split-combine step (we'll see an example of this later in @sec-spring-stat) However, as a general rule it is better to begin by modifying `compute_group()` only and see if the performance is adequate.
As a consequence developers sometimes find it valuable to offload some of the work to `compute_panel()` where possible: doing so allows you to vectorise computations and avoid an expensive split-combine step (we'll see an example of this later in @sec-spring-stat). However, as a general rule it is better to begin by modifying `compute_group()` only and see if the performance is adequate.

To illustrate this, we'll start by creating a stat that calculates the convex hull of a set of points, using the `chull()` function included in `grDevices`.
As you might expect, most of the work is done by a new ggproto object that we will create:
Expand Down

0 comments on commit 223989d

Please sign in to comment.