Skip to content

[WIP] Module on "Writing functions" - #3

Draft
etiennebacher wants to merge 19 commits into
mainfrom
module-writing-functions
Draft

[WIP] Module on "Writing functions"#3
etiennebacher wants to merge 19 commits into
mainfrom
module-writing-functions

Conversation

@etiennebacher

Copy link
Copy Markdown
Collaborator

Very early, incomplete draft.

@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown

See preview at https://palaeoverse.github.io/modules/pr-preview/pr-3/training/modules

Comment thread writing_functions/index.qmd Outdated
Comment thread writing_functions/index.qmd Outdated
Comment thread writing_functions/index.qmd Outdated

# Other ways to use and create functions

## Functions as arguments

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this section is useful to know, but this module is about writing functions so I am not entirely convinced it fits here.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair point. Functions as arguments are an essential part of both base R via the apply family and the more elaborate data analysis pipelines, which is why I wanted to have them present. Any suggestion where (e.g., in another module) this topic could be placed more appropriately?

etiennebacher and others added 4 commits August 10, 2026 15:35
Co-authored-by: Etienne Bacher <52219252+etiennebacher@users.noreply.github.com>
Switch from `mean` to `sd` to avoid participants interacting with S3 generics.

Co-authored-by: Etienne Bacher <52219252+etiennebacher@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants