jcken95 / jcken95/code-examples

Turn analysis code into a function

Aperta
#2 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
R
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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! :)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
r
Ambito
data-visualization
Tipo di issue
Refactoring
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.