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

Copenhagen: Remind users to use ?function() when unsure about the use: example with ends_with() #19

Open
JoaodcPires opened this issue Jan 31, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@JoaodcPires
Copy link
Collaborator

For the section:

## ----skim_dose_cols-----------------------------------------------------------

drskim <- linelist %>% 
  # Select all columns with names that end in upper case 'D':
  select(ends_with("D", ignore.case = FALSE)) %>% 
  # Produce the skim summary table
  skimr::skim()

Add the following documentation:

## check the function ends_with()
?ends_with
## by default the function ignores upper or lower case inputs.
## If we would use the default ignore.case = T, the variable bread would also be selected

drskim <- linelist %>% 
  # Select all columns with names that end in upper case 'D':
  select(ends_with("D", ignore.case = FALSE)) %>% 
  # Produce the skim summary table
  skimr::skim()
@JoaodcPires JoaodcPires added the documentation Improvements or additions to documentation label Jan 31, 2023
@JoaodcPires JoaodcPires changed the title Remind users to use ?function() when unsure about the use: example with ends_with() Copenhagen: Remind users to use ?function() when unsure about the use: example with ends_with() Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant