https://github.com/utdata/r-across-examples
Examples of using `across()` and `if_any()` in R.
https://github.com/utdata/r-across-examples
r
Last synced: 11 months ago
JSON representation
Examples of using `across()` and `if_any()` in R.
- Host: GitHub
- URL: https://github.com/utdata/r-across-examples
- Owner: utdata
- Created: 2021-03-03T04:24:29.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-03T04:28:07.000Z (over 5 years ago)
- Last Synced: 2025-02-06T20:44:25.171Z (over 1 year ago)
- Topics: r
- Homepage: https://utdata.github.io/r-across-examples/
- Size: 634 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
---
output:
html_document:
df_print: paged
knit: (function(inputFile, encoding) { rmarkdown::render(
inputFile,
encoding = encoding,
output_dir = "docs",
output_file='index.html'
) })
---
# Examples using across and if_any
I've struggled trying to use the [`across()`](https://dplyr.tidyverse.org/reference/across.html) functions. I had a specific use case in mind that used `mutate()` across multiple columns for any value from a list.
I figured it out!
## Published notebooks
- [mutate](https://utdata.github.io/r-across-examples/mutate-across.html)
- [filter](https://utdata.github.io/r-across-examples/filter-across.html)