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

Functions idea - "data_insights" function #603

Open
avahoffman opened this issue Jun 21, 2024 · 2 comments
Open

Functions idea - "data_insights" function #603

avahoffman opened this issue Jun 21, 2024 · 2 comments

Comments

@avahoffman
Copy link
Collaborator

avahoffman commented Jun 21, 2024

While it's nice to have really simple functions - it might obscure some of the rationale of why we do functions in the beginning (when will you ever have a "times_2" function)

Could we start by showing some repetitive code, explaining that it's hard to maintain, and then how you could simplify it to have a really simple function that does something like

data_insights <- function(x) {
    x_insight <- x %>%
    filter(something) %>%
    group_by(something) %>%
    summarize(something)

    return(x_insight)
}

as the basis for this lecture?

Then we return to basics, followed by tibble examples, etc

@carriewright11
Copy link
Member

even just adding this would be great!

@carriewright11
Copy link
Member

carriewright11 commented Jun 21, 2024

showing real examples could be cool too from our work maybe? or a case study

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants