jcken95 / jcken95/code-examples

Turn analysis code into a function

Offen
#2 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
R
Sterne
0
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

somewhere we have
``` r

mtcars |>
# TODO: turn into a function which uses the number of cyl as an arg
filter(cyl == 4) |>
ggplot(aes(x = wt)) +
geom_histogram()

```
this could be a function! :)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Locate the R code containing the mtcars pipeline, since the issue does not identify a file. Start by reviewing the existing filter and ggplot code; done means extracting it into a function that accepts the number of cylinders as an argument and preserves the histogram output.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
r
Bereich
data-visualization
Issue-Typ
Refactoring
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
42/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.