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

Add the general structure of a function #740

Open
josschavezf opened this issue Aug 26, 2021 · 1 comment
Open

Add the general structure of a function #740

josschavezf opened this issue Aug 26, 2021 · 1 comment
Labels
good first issue Good issue for first-time contributors help wanted Looking for Contributors type:clarification Suggest change for make lesson clearer

Comments

@josschavezf
Copy link
Contributor

josschavezf commented Aug 26, 2021

Hi!

In the episode "Functions Explained" under the section "Defining a function", I propose to add the general or basic structure of a function before start creating a new one. As a beginner, this was useful for me. For example:

my_function <- function(parameters) {
# function_body
}

Thanks! ❤️

@josschavezf josschavezf changed the title Add general function structure Add the general structure of a function Aug 26, 2021
@jcoliver
Copy link
Contributor

Good idea, @josschavezf . One could take an approach like that in the control flow episode:

my_function <- function(parameters) {
# perform action
# return value
}

Feel free to open a PR with updates to the Rmd file if you see fit.

@jcoliver jcoliver added good first issue Good issue for first-time contributors help wanted Looking for Contributors type:clarification Suggest change for make lesson clearer labels Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good issue for first-time contributors help wanted Looking for Contributors type:clarification Suggest change for make lesson clearer
Projects
None yet
Development

No branches or pull requests

2 participants