From b12a37f5ec3ac14626a931c79af84c43064ee989 Mon Sep 17 00:00:00 2001 From: andrewallenbruce Date: Sun, 11 Aug 2024 02:56:09 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20andrewal?= =?UTF-8?q?lenbruce/fuimus@c6b0d2229a6f295e83e9fa015419fe47cf426500=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgdown.yml | 2 +- reference/age_days.html | 12 ++-- reference/check_chars_numeric.html | 72 ++++++++++++++++++++++ reference/check_first_char.html | 72 ++++++++++++++++++++++ reference/check_length.html | 72 ++++++++++++++++++++++ reference/check_nchars_10.html | 72 ++++++++++++++++++++++ reference/index.html | 12 ++++ reference/is_valid_npi.html | 92 +++++++++++++++++++++++++++++ reference/make_interval.html | 2 +- reference/numeric_to_char.html | 72 ++++++++++++++++++++++ reference/random_npi_generator.html | 91 ++++++++++++++++++++++++++++ reference/rate_of_return.html | 24 ++++---- search.json | 2 +- sitemap.xml | 7 +++ 14 files changed, 583 insertions(+), 21 deletions(-) create mode 100644 reference/check_chars_numeric.html create mode 100644 reference/check_first_char.html create mode 100644 reference/check_length.html create mode 100644 reference/check_nchars_10.html create mode 100644 reference/is_valid_npi.html create mode 100644 reference/numeric_to_char.html create mode 100644 reference/random_npi_generator.html diff --git a/pkgdown.yml b/pkgdown.yml index 59a8012..52771b4 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -2,7 +2,7 @@ pandoc: 3.1.11 pkgdown: 2.1.0 pkgdown_sha: ~ articles: {} -last_built: 2024-08-08T05:55Z +last_built: 2024-08-11T02:55Z urls: reference: https://andrewallenbruce.github.io/fuimus/reference article: https://andrewallenbruce.github.io/fuimus/articles diff --git a/reference/age_days.html b/reference/age_days.html index c8abc09..88d1738 100644 --- a/reference/age_days.html +++ b/reference/age_days.html @@ -111,9 +111,9 @@

Examples#> # A tibble: 3 × 3 #> x y days_since_x #> <date> <date> <dbl> -#> 1 2021-01-01 2022-01-01 1316 -#> 2 2021-02-01 2022-02-01 1285 -#> 3 2021-03-01 2022-03-01 1257 +#> 1 2021-01-01 2022-01-01 1319 +#> 2 2021-02-01 2022-02-01 1288 +#> 3 2021-03-01 2022-03-01 1260 date_ex |> age_days(x, y, "days_between_x_y") |> @@ -122,9 +122,9 @@

Examples#> # A tibble: 3 × 5 #> x y days_between_x_y days_since_x days_since_y #> <date> <date> <dbl> <dbl> <dbl> -#> 1 2021-01-01 2022-01-01 366 1316 951 -#> 2 2021-02-01 2022-02-01 366 1285 920 -#> 3 2021-03-01 2022-03-01 366 1257 892 +#> 1 2021-01-01 2022-01-01 366 1319 954 +#> 2 2021-02-01 2022-02-01 366 1288 923 +#> 3 2021-03-01 2022-03-01 366 1260 895 diff --git a/reference/check_chars_numeric.html b/reference/check_chars_numeric.html new file mode 100644 index 0000000..773b743 --- /dev/null +++ b/reference/check_chars_numeric.html @@ -0,0 +1,72 @@ + +Check that x contains numbers only — check_chars_numeric • fuimus + Skip to contents + + +
+
+
+ +
+

Check that x contains numbers only

+
+ +
+

Usage

+
check_chars_numeric(x)
+
+ +
+

Arguments

+ + +
x
+

vector

+ +
+ +
+ + +
+ + + +
+ + + + + + + diff --git a/reference/check_first_char.html b/reference/check_first_char.html new file mode 100644 index 0000000..e05bfd0 --- /dev/null +++ b/reference/check_first_char.html @@ -0,0 +1,72 @@ + +Check that x begin with 1 or 2 — check_first_char • fuimus + Skip to contents + + +
+
+
+ +
+

Check that x begin with 1 or 2

+
+ +
+

Usage

+
check_first_char(x)
+
+ +
+

Arguments

+ + +
x
+

vector

+ +
+ +
+ + +
+ + + +
+ + + + + + + diff --git a/reference/check_length.html b/reference/check_length.html new file mode 100644 index 0000000..8f8d4ab --- /dev/null +++ b/reference/check_length.html @@ -0,0 +1,72 @@ + +Check length of x is 1 — check_length • fuimus + Skip to contents + + +
+
+
+ +
+

Check length of x is 1

+
+ +
+

Usage

+
check_length(x)
+
+ +
+

Arguments

+ + +
x
+

vector

+ +
+ +
+ + +
+ + + +
+ + + + + + + diff --git a/reference/check_nchars_10.html b/reference/check_nchars_10.html new file mode 100644 index 0000000..be53e7a --- /dev/null +++ b/reference/check_nchars_10.html @@ -0,0 +1,72 @@ + +Check that x is 10 characters long — check_nchars_10 • fuimus + Skip to contents + + +
+
+
+ +
+

Check that x is 10 characters long

+
+ +
+

Usage

+
check_nchars_10(x)
+
+ +
+

Arguments

+ + +
x
+

vector

+ +
+ +
+ + +
+ + + +
+ + + + + + + diff --git a/reference/index.html b/reference/index.html index 5bbed17..a289f18 100644 --- a/reference/index.html +++ b/reference/index.html @@ -259,6 +259,12 @@

All functionsis_valid_npi() + + +
Validate NPIs
+
+ mad_na()
@@ -337,6 +343,12 @@

All functionsrandom_npi_generator() + + +
Generate random NPIs
+

+ range_na()
diff --git a/reference/is_valid_npi.html b/reference/is_valid_npi.html new file mode 100644 index 0000000..e74c0a7 --- /dev/null +++ b/reference/is_valid_npi.html @@ -0,0 +1,92 @@ + +Validate NPIs — is_valid_npi • fuimus + Skip to contents + + +
+
+
+ +
+

Validate NPIs

+
+ +
+

Usage

+
is_valid_npi(npi)
+
+ +
+

Arguments

+ + +
npi
+

<character> Number of NPIs to generate

+ +
+
+

Value

+

<logical> vector

+
+ +
+

Examples

+
is_valid_npi(1043477615)
+#> [1] TRUE
+
+is_valid_npi(1234567891)
+#> [1] FALSE
+
+x <- random_npi_generator(100)
+
+x[collapse::whichv(purrr::map_lgl(x, is_valid_npi), TRUE)]
+#> [1] "1008702189" "2868258296" "2434933059" "2885734709" "2273851685"
+#> [6] "1293779876" "2152431187" "2697169250"
+
+
+
+
+ + +
+ + + +
+ + + + + + + diff --git a/reference/make_interval.html b/reference/make_interval.html index 10349ee..d07e06c 100644 --- a/reference/make_interval.html +++ b/reference/make_interval.html @@ -69,7 +69,7 @@

Examples#> # A tibble: 1 × 4 #> date interval period timelength_days #> <date> <Interval> <Period> <dbl> -#> 1 2023-08-08 2023-08-08 UTC--2024-08-08 UTC 1y 0m 0d 0H 0M 0S 366 +#> 1 2023-08-11 2023-08-11 UTC--2024-08-11 UTC 1y 0m 0d 0H 0M 0S 366 diff --git a/reference/numeric_to_char.html b/reference/numeric_to_char.html new file mode 100644 index 0000000..b57c423 --- /dev/null +++ b/reference/numeric_to_char.html @@ -0,0 +1,72 @@ + +Coerce <numeric> vector to <character> — numeric_to_char • fuimus + Skip to contents + + +
+
+
+ +
+

Coerce <numeric> vector to <character>

+
+ +
+

Usage

+
numeric_to_char(x)
+
+ +
+

Arguments

+ + +
x
+

vector

+ +
+ +
+ + +
+ + + +
+ + + + + + + diff --git a/reference/random_npi_generator.html b/reference/random_npi_generator.html new file mode 100644 index 0000000..43823e7 --- /dev/null +++ b/reference/random_npi_generator.html @@ -0,0 +1,91 @@ + +Generate random NPIs — random_npi_generator • fuimus + Skip to contents + + +
+
+
+ +
+

Generate random NPIs

+
+ +
+

Usage

+
random_npi_generator(n)
+
+ +
+

Arguments

+ + +
n
+

<integer> Number of NPIs to generate

+ +
+
+

Value

+

<character> vector of n NPIs

+
+ +
+

Examples

+
random_npi_generator(10)
+#>  [1] "2101740960" "2995200808" "2416182140" "2736791682" "2103965103"
+#>  [6] "1721442185" "1998672676" "2560404666" "2394195845" "2974485686"
+
+x <- random_npi_generator(100)
+
+x[collapse::whichv(purrr::map_lgl(x, is_valid_npi), TRUE)]
+#>  [1] "1992863377" "1878858426" "1359145194" "1316180235" "2170368841"
+#>  [6] "1874265170" "2696584988" "2003973429" "2268628684" "1155645140"
+#> [11] "1572336828"
+
+
+
+
+ + +
+ + + +
+ + + + + + + diff --git a/reference/rate_of_return.html b/reference/rate_of_return.html index 9dbb88c..9c4859e 100644 --- a/reference/rate_of_return.html +++ b/reference/rate_of_return.html @@ -70,18 +70,18 @@

Examples#> # A tibble: 12 × 4 #> year group net_payment net_payment_ror #> <int> <chr> <int> <dbl> -#> 1 2020 A 13586 1 -#> 2 2021 A 19379 1.43 -#> 3 2022 A 18033 0.931 -#> 4 2023 A 18159 1.01 -#> 5 2024 A 17377 0.957 -#> 6 2025 A 11267 0.648 -#> 7 2020 B 14052 1 -#> 8 2021 B 17423 1.24 -#> 9 2022 B 11881 0.682 -#> 10 2023 B 10237 0.862 -#> 11 2024 B 10245 1.00 -#> 12 2025 B 12955 1.26 +#> 1 2020 A 18462 1 +#> 2 2021 A 16298 0.883 +#> 3 2022 A 19804 1.22 +#> 4 2023 A 15139 0.764 +#> 5 2024 A 19088 1.26 +#> 6 2025 A 10549 0.553 +#> 7 2020 B 11940 1 +#> 8 2021 B 18376 1.54 +#> 9 2022 B 19879 1.08 +#> 10 2023 B 19705 0.991 +#> 11 2024 B 17459 0.886 +#> 12 2025 B 13734 0.787 diff --git a/search.json b/search.json index 29608d6..a752d55 100644 --- a/search.json +++ b/search.json @@ -1 +1 @@ -[{"path":[]},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"our-pledge","dir":"","previous_headings":"","what":"Our Pledge","title":"Contributor Covenant Code of Conduct","text":"members, contributors, leaders pledge make participation community harassment-free experience everyone, regardless age, body size, visible invisible disability, ethnicity, sex characteristics, gender identity expression, level experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, sexual identity orientation. pledge act interact ways contribute open, welcoming, diverse, inclusive, healthy community.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"our-standards","dir":"","previous_headings":"","what":"Our Standards","title":"Contributor Covenant Code of Conduct","text":"Examples behavior contributes positive environment community include: Demonstrating empathy kindness toward people respectful differing opinions, viewpoints, experiences Giving gracefully accepting constructive feedback Accepting responsibility apologizing affected mistakes, learning experience Focusing best just us individuals, overall community Examples unacceptable behavior include: use sexualized language imagery, sexual attention advances kind Trolling, insulting derogatory comments, personal political attacks Public private harassment Publishing others’ private information, physical email address, without explicit permission conduct reasonably considered inappropriate professional setting","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"enforcement-responsibilities","dir":"","previous_headings":"","what":"Enforcement Responsibilities","title":"Contributor Covenant Code of Conduct","text":"Community leaders responsible clarifying enforcing standards acceptable behavior take appropriate fair corrective action response behavior deem inappropriate, threatening, offensive, harmful. Community leaders right responsibility remove, edit, reject comments, commits, code, wiki edits, issues, contributions aligned Code Conduct, communicate reasons moderation decisions appropriate.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"scope","dir":"","previous_headings":"","what":"Scope","title":"Contributor Covenant Code of Conduct","text":"Code Conduct applies within community spaces, also applies individual officially representing community public spaces. Examples representing community include using official e-mail address, posting via official social media account, acting appointed representative online offline event.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"enforcement","dir":"","previous_headings":"","what":"Enforcement","title":"Contributor Covenant Code of Conduct","text":"Instances abusive, harassing, otherwise unacceptable behavior may reported community leaders responsible enforcement andrew.bruce@northstarrevenueintegrity.com. complaints reviewed investigated promptly fairly. community leaders obligated respect privacy security reporter incident.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"enforcement-guidelines","dir":"","previous_headings":"","what":"Enforcement Guidelines","title":"Contributor Covenant Code of Conduct","text":"Community leaders follow Community Impact Guidelines determining consequences action deem violation Code Conduct:","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"id_1-correction","dir":"","previous_headings":"Enforcement Guidelines","what":"1. Correction","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Use inappropriate language behavior deemed unprofessional unwelcome community. Consequence: private, written warning community leaders, providing clarity around nature violation explanation behavior inappropriate. public apology may requested.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"id_2-warning","dir":"","previous_headings":"Enforcement Guidelines","what":"2. Warning","title":"Contributor Covenant Code of Conduct","text":"Community Impact: violation single incident series actions. Consequence: warning consequences continued behavior. interaction people involved, including unsolicited interaction enforcing Code Conduct, specified period time. includes avoiding interactions community spaces well external channels like social media. Violating terms may lead temporary permanent ban.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"id_3-temporary-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"3. Temporary Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: serious violation community standards, including sustained inappropriate behavior. Consequence: temporary ban sort interaction public communication community specified period time. public private interaction people involved, including unsolicited interaction enforcing Code Conduct, allowed period. Violating terms may lead permanent ban.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"id_4-permanent-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"4. Permanent Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Demonstrating pattern violation community standards, including sustained inappropriate behavior, harassment individual, aggression toward disparagement classes individuals. Consequence: permanent ban sort public interaction within community.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"attribution","dir":"","previous_headings":"","what":"Attribution","title":"Contributor Covenant Code of Conduct","text":"Code Conduct adapted Contributor Covenant, version 2.1, available https://www.contributor-covenant.org/version/2/1/code_of_conduct.html. Community Impact Guidelines inspired [Mozilla’s code conduct enforcement ladder][https://github.com/mozilla/inclusion]. answers common questions code conduct, see FAQ https://www.contributor-covenant.org/faq. Translations available https://www.contributor-covenant.org/translations.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2024 fuimus authors Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Andrew Bruce. Author, maintainer, copyright holder.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Bruce (2024). fuimus: Functions . R package version 0.0.2, https://github.com/andrewallenbruce/fuimus, https://andrewallenbruce.github.io/fuimus/.","code":"@Manual{, title = {fuimus: Functions That Have Been}, author = {Andrew Bruce}, year = {2024}, note = {R package version 0.0.2, https://github.com/andrewallenbruce/fuimus}, url = {https://andrewallenbruce.github.io/fuimus/}, }"},{"path":"https://andrewallenbruce.github.io/fuimus/index.html","id":"fuimus-","dir":"","previous_headings":"","what":"Functions That Have Been","title":"Functions That Have Been","text":"/ˈfu..mus/, [ˈfuɪmʊs̠] Literally, ‘’ Latin. Often interpreted ‘endured’ ‘always ’, proclaiming long history user. family motto Lowlands Scottish Clan Bruce).","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/index.html","id":"package-installation","dir":"","previous_headings":"","what":"📦 Installation","title":"Functions That Have Been","text":"can install fuimus GitHub :","code":"# install.packages(\"pak\") pak::pak(\"andrewallenbruce/fuimus\")"},{"path":"https://andrewallenbruce.github.io/fuimus/index.html","id":"balance_scale-code-of-conduct","dir":"","previous_headings":"","what":"⚖️ Code of Conduct","title":"Functions That Have Been","text":"Please note fuimus project released Contributor Code Conduct. contributing project, agree abide terms.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/index.html","id":"classical_building-governance","dir":"","previous_headings":"","what":"🏛️ Governance","title":"Functions That Have Been","text":"project primarily maintained Andrew Bruce. authors may occasionally assist duties.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/add_ifelse.html","id":null,"dir":"Reference","previous_headings":"","what":"Search in data frame column if search term is not NULL — add_ifelse","title":"Search in data frame column if search term is not NULL — add_ifelse","text":"Search data frame column search term NULL","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/add_ifelse.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Search in data frame column if search term is not NULL — add_ifelse","text":"","code":"add_ifelse(x, df, dfcol, by)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/add_ifelse.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Search in data frame column if search term is not NULL — add_ifelse","text":"x specifying search term df dfcol specifying column search specifying column nest ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/add_ifelse.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Search in data frame column if search term is not NULL — add_ifelse","text":" ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/add_ifelse.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Search in data frame column if search term is not NULL — add_ifelse","text":"","code":"if (FALSE) { add_ifelse(x = \"Practitioner\", df = df, dfcol = df$mue_service_type, by = mue_service_type) }"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/age_days.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate Number of Days Between Two Dates — age_days","title":"Calculate Number of Days Between Two Dates — age_days","text":"Calculate Number Days Two Dates","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/age_days.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate Number of Days Between Two Dates — age_days","text":"","code":"age_days(df, start, end, colname = \"age\")"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/age_days.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate Number of Days Between Two Dates — age_days","text":"df containing date columns start column containing date(s) prior end_date column end column containing date(s) start_date column colname desired column name output; default \"age\"","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/age_days.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Calculate Number of Days Between Two Dates — age_days","text":"tibble named column containing calculated number days.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/age_days.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Calculate Number of Days Between Two Dates — age_days","text":"calculation includes end date sum (see example)","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/age_days.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate Number of Days Between Two Dates — age_days","text":"","code":"date_ex <- dplyr::tibble( x = seq.Date( as.Date(\"2021-01-01\"), by = \"month\", length.out = 3), y = seq.Date( as.Date(\"2022-01-01\"), by = \"month\", length.out = 3 ) ) age_days(df = date_ex, start = x, end = y) #> # A tibble: 3 × 3 #> x y age #> #> 1 2021-01-01 2022-01-01 366 #> 2 2021-02-01 2022-02-01 366 #> 3 2021-03-01 2022-03-01 366 date_ex |> age_days(x, y, \"days_between_x_y\") #> # A tibble: 3 × 3 #> x y days_between_x_y #> #> 1 2021-01-01 2022-01-01 366 #> 2 2021-02-01 2022-02-01 366 #> 3 2021-03-01 2022-03-01 366 date_ex |> age_days(start = x, end = lubridate::today(), colname = \"days_since_x\") #> # A tibble: 3 × 3 #> x y days_since_x #> #> 1 2021-01-01 2022-01-01 1316 #> 2 2021-02-01 2022-02-01 1285 #> 3 2021-03-01 2022-03-01 1257 date_ex |> age_days(x, y, \"days_between_x_y\") |> age_days(x, lubridate::today(), \"days_since_x\") |> age_days(y, lubridate::today(), colname = \"days_since_y\") #> # A tibble: 3 × 5 #> x y days_between_x_y days_since_x days_since_y #> #> 1 2021-01-01 2022-01-01 366 1316 951 #> 2 2021-02-01 2022-02-01 366 1285 920 #> 3 2021-03-01 2022-03-01 366 1257 892"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/change.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate Lagged Metrics — change","title":"Calculate Lagged Metrics — change","text":"Calculate Lagged Metrics","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/change.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate Lagged Metrics — change","text":"","code":"change(df, cols, csm = NULL)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/change.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate Lagged Metrics — change","text":"df data frame cols numeric columns calculate absolute/relative change & rate return csm numeric cols calculate cumulative sum ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/change.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate Lagged Metrics — change","text":"","code":"fuimus:::provider_data(2020:2025) |> dplyr::group_by(group) |> change(net_payment, csm = c(\"payment\", \"_chg\")) #> # A tibble: 12 × 8 #> year group net_payment net_payment_chg net_payment_pct net_payment_ror #> #> 1 2020 A 15292 0 0 1 #> 2 2021 A 15526 234 0.0153 1.02 #> 3 2022 A 16603 1077 0.0694 1.07 #> 4 2023 A 10484 -6119 -0.369 0.631 #> 5 2024 A 12606 2122 0.202 1.20 #> 6 2025 A 11475 -1131 -0.0897 0.910 #> 7 2020 B 18165 0 0 1 #> 8 2021 B 12244 -5921 -0.326 0.674 #> 9 2022 B 14612 2368 0.193 1.19 #> 10 2023 B 19982 5370 0.368 1.37 #> 11 2024 B 14172 -5810 -0.291 0.709 #> 12 2025 B 19089 4917 0.347 1.35 #> # ℹ 2 more variables: net_payment_csm , net_payment_chg_csm "},{"path":"https://andrewallenbruce.github.io/fuimus/reference/change_lagged.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate lagged values by column — change_lagged","title":"Calculate lagged values by column — change_lagged","text":"Calculate lagged values column","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/change_lagged.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate lagged values by column — change_lagged","text":"","code":"change_lagged(df, col, by = NULL)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/change_lagged.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate lagged values by column — change_lagged","text":"df data frame col column numeric values calculate lag column calculate lag ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/change_lagged.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate lagged values by column — change_lagged","text":"","code":"fuimus:::provider_data(2020:2025) |> dplyr::group_by(group) |> change_lagged(net_payment, year) #> # A tibble: 12 × 5 #> # Groups: group [2] #> year group net_payment net_payment_chg net_payment_pct #> #> 1 2020 A 12614 NA NA #> 2 2021 A 13371 757 0.0600 #> 3 2022 A 11980 -1391 -0.104 #> 4 2023 A 12046 66 0.00551 #> 5 2024 A 13331 1285 0.107 #> 6 2025 A 18943 5612 0.421 #> 7 2020 B 19285 NA NA #> 8 2021 B 16293 -2992 -0.155 #> 9 2022 B 11022 -5271 -0.324 #> 10 2023 B 11289 267 0.0242 #> 11 2024 B 19121 7832 0.694 #> 12 2025 B 14275 -4846 -0.253"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/chg_abs.html","id":null,"dir":"Reference","previous_headings":"","what":"Lagged absolute change — chg_abs","title":"Lagged absolute change — chg_abs","text":"Lagged absolute change","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/chg_abs.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Lagged absolute change — chg_abs","text":"","code":"chg_abs(x, n = 1L, fill_na = 0L)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/chg_abs.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Lagged absolute change — chg_abs","text":"x numeric vector n values offset fill_na fill value NAs; default 0","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/chg_abs.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Lagged absolute change — chg_abs","text":"","code":"fuimus:::provider_data(2020:2025) |> dplyr::mutate(change = chg_abs(net_payment), .by = group) #> # A tibble: 12 × 4 #> year group net_payment change #> #> 1 2020 A 12069 0 #> 2 2021 A 11920 -149 #> 3 2022 A 14274 2354 #> 4 2023 A 16829 2555 #> 5 2024 A 14928 -1901 #> 6 2025 A 11560 -3368 #> 7 2020 B 14590 0 #> 8 2021 B 15617 1027 #> 9 2022 B 16308 691 #> 10 2023 B 12783 -3525 #> 11 2024 B 12923 140 #> 12 2025 B 11874 -1049"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/chg_pct.html","id":null,"dir":"Reference","previous_headings":"","what":"Lagged percentage change — chg_pct","title":"Lagged percentage change — chg_pct","text":"Lagged percentage change","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/chg_pct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Lagged percentage change — chg_pct","text":"","code":"chg_pct(x, n = 1L, fill_na = 0L)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/chg_pct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Lagged percentage change — chg_pct","text":"x numeric vector n values offset fill_na fill value NAs; default 0","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/chg_pct.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Lagged percentage change — chg_pct","text":"","code":"fuimus:::provider_data(2020:2025) |> dplyr::mutate(change = chg_pct(net_payment), .by = group) #> # A tibble: 12 × 4 #> year group net_payment change #> #> 1 2020 A 17963 0 #> 2 2021 A 11839 -0.341 #> 3 2022 A 19177 0.620 #> 4 2023 A 11314 -0.410 #> 5 2024 A 18321 0.619 #> 6 2025 A 13926 -0.240 #> 7 2020 B 17017 0 #> 8 2021 B 18834 0.107 #> 9 2022 B 11829 -0.372 #> 10 2023 B 16595 0.403 #> 11 2024 B 10745 -0.353 #> 12 2025 B 12624 0.175"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/clean_number.html","id":null,"dir":"Reference","previous_headings":"","what":"Clean character vector of numbers — clean_number","title":"Clean character vector of numbers — clean_number","text":"Clean character vector numbers","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/clean_number.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Clean character vector of numbers — clean_number","text":"","code":"clean_number(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/clean_number.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Clean character vector of numbers — clean_number","text":"x vector numbers","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/clean_number.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Clean character vector of numbers — clean_number","text":" vector numbers","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/clean_number.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Clean character vector of numbers — clean_number","text":"","code":"clean_number(c(\"20%\", \"21,125,458\", \"$123\")) #> [1] 0.2 21125458.0 123.0"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/collapser.html","id":null,"dir":"Reference","previous_headings":"","what":"Wrapper for paste0() that collapses result — collapser","title":"Wrapper for paste0() that collapses result — collapser","text":"Wrapper paste0() collapses result","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/collapser.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Wrapper for paste0() that collapses result — collapser","text":"","code":"collapser(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/collapser.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Wrapper for paste0() that collapses result — collapser","text":"x split vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/collapser.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Wrapper for paste0() that collapses result — collapser","text":"collapsed string","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/collapser.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Wrapper for paste0() that collapses result — collapser","text":"","code":"collapser(c(\"X\", \"Y\", \"Z\")) #> [1] \"XYZ\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/color_text.html","id":null,"dir":"Reference","previous_headings":"","what":"Color text using HTML color styling — color_text","title":"Color text using HTML color styling — color_text","text":"Useful conjuction ggtext glue","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/color_text.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Color text using HTML color styling — color_text","text":"","code":"color_text(text, hex_code)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/color_text.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Color text using HTML color styling — color_text","text":"text string text hex_code string, color hex code","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/color_text.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Color text using HTML color styling — color_text","text":" string","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/color_text.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Color text using HTML color styling — color_text","text":"","code":"color_text(\"Hello there!\", \"#BD43BF\") #> [1] \"Hello there!<\/span>\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/combine.html","id":null,"dir":"Reference","previous_headings":"","what":"Combine multiple columns into one — combine","title":"Combine multiple columns into one — combine","text":"Combine multiple columns one","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/combine.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Combine multiple columns into one — combine","text":"","code":"combine(df, name = combined, columns, sep = \"-\")"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/combine.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Combine multiple columns into one — combine","text":"df name new column name, unquoted, default combined columns vector columns combine sep separator combined row data, default \"-\"","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/combine.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Combine multiple columns into one — combine","text":" combined columns","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/combine.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Combine multiple columns into one — combine","text":"","code":"fuimus:::forager_data()[-5] |> combine(name = id_payer, columns = c('claim_id', 'payer')) #> # A tibble: 10 × 3 #> id_payer ins_class balance #> #> 1 01-BCBS Secondary 100. #> 2 02-Humana Secondary 171. #> 3 03-Anthem Secondary 130. #> 4 04-Medicare Primary 114. #> 5 05-Medicaid Primary 247. #> 6 06-Medicaid Primary 52.2 #> 7 07-Anthem Secondary 27.0 #> 8 08-BCBS Primary 137. #> 9 09-Humana Primary 254. #> 10 10-Medicaid Primary 117."},{"path":"https://andrewallenbruce.github.io/fuimus/reference/construct_regex.html","id":null,"dir":"Reference","previous_headings":"","what":"Construct regex patterns — construct_regex","title":"Construct regex patterns — construct_regex","text":"Construct regex patterns","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/construct_regex.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Construct regex patterns — construct_regex","text":"","code":"construct_regex(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/construct_regex.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Construct regex patterns — construct_regex","text":"x vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/construct_regex.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Construct regex patterns — construct_regex","text":" regex vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/construct_regex.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Construct regex patterns — construct_regex","text":"","code":"# construct_regex(search_descriptions()$hcpcs_code) # construct_regex(search_adjustments()$adj_code) # Incorrect output: \"^[A-DM-PWY1-9][AIOR0-9]?[0-9]?{3}$\" #> [1] \"^[A-DM-PWY1-9][AIOR0-9]?[0-9]?{3}$\" # Digits at the end should be: \"^[A-DM-PWY1-9][AIOR0-9]?[0-9]{0,3}?$\" #> [1] \"^[A-DM-PWY1-9][AIOR0-9]?[0-9]{0,3}?$\" # Test adj codes adj <- c(\"4\", \"CO\", \"P6\", \"100\", \"B19\", \"MA22\", \"MA124\", \"N766\") construct_regex(adj) #> [1] \"^[BCMNP14][AO0167]?[0-269]?[26]?[4]?$\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_days.html","id":null,"dir":"Reference","previous_headings":"","what":"Count days between two dates — count_days","title":"Count days between two dates — count_days","text":"Count days two dates","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_days.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Count days between two dates — count_days","text":"","code":"count_days(df, start, end, name)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_days.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Count days between two dates — count_days","text":"df start bare date column name end bare date column name name bare name days output column","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_days.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Count days between two dates — count_days","text":" ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_days.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Count days between two dates — count_days","text":"","code":"dplyr::tibble(dos = as.Date(c(\"2021-04-18\", \"2021-11-18\", \"2022-02-18\")), signed = as.Date(\"2022-02-18\")) |> count_days( start = dos, end = signed, lag) #> # A tibble: 3 × 3 #> dos signed lag #> #> 1 2021-04-18 2022-02-18 306 #> 2 2021-11-18 2022-02-18 92 #> 3 2022-02-18 2022-02-18 0"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_missing.html","id":null,"dir":"Reference","previous_headings":"","what":"Count missing values — count_missing","title":"Count missing values — count_missing","text":"Count missing values","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_missing.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Count missing values — count_missing","text":"","code":"count_missing(df, group_vars, x_var)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_missing.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Count missing values — count_missing","text":"df group_vars vector variables group x_var vector variable count missing values ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_missing.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Count missing values — count_missing","text":" count missing values","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_missing.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Count missing values — count_missing","text":"","code":"dplyr::tibble(x = 1:10, y = 1:10, z = letters[1:10]) |> count_missing(z, x) #> # A tibble: 10 × 2 #> z n_miss #> #> 1 a 0 #> 2 b 0 #> 3 c 0 #> 4 d 0 #> 5 e 0 #> 6 f 0 #> 7 g 0 #> 8 h 0 #> 9 i 0 #> 10 j 0"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_prop.html","id":null,"dir":"Reference","previous_headings":"","what":"Count and calculate proportion of each group — count_prop","title":"Count and calculate proportion of each group — count_prop","text":"Count calculate proportion group","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_prop.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Count and calculate proportion of each group — count_prop","text":"","code":"count_prop(df, var, sort = FALSE, na.rm = FALSE)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_prop.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Count and calculate proportion of each group — count_prop","text":"df var specifying column count sort indicating whether sort output frequency, default FALSE na.rm indicating whether remove missing values count, default FALSE","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_prop.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Count and calculate proportion of each group — count_prop","text":"","code":"fuimus:::forager_data() |> count_prop(payer, sort = TRUE) #> # A tibble: 5 × 3 #> payer n prop #> #> 1 BCBS 3 0.3 #> 2 Cigna 3 0.3 #> 3 Humana 2 0.2 #> 4 Anthem 1 0.1 #> 5 Centene 1 0.1"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_prop_multi.html","id":null,"dir":"Reference","previous_headings":"","what":"Count and calculate proportion of each group — count_prop_multi","title":"Count and calculate proportion of each group — count_prop_multi","text":"Count calculate proportion group","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_prop_multi.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Count and calculate proportion of each group — count_prop_multi","text":"","code":"count_prop_multi(df, rows, cols, sort = FALSE, na.rm = FALSE)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_prop_multi.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Count and calculate proportion of each group — count_prop_multi","text":"df rows specifying rows count cols specifying columns count sort indicating whether sort output frequency, default FALSE na.rm indicating whether remove missing values count, default FALSE","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_prop_multi.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Count and calculate proportion of each group — count_prop_multi","text":"","code":"fuimus:::forager_data(10) |> count_prop_multi( c(ins_class), payer, sort = TRUE) #> # A tibble: 8 × 4 #> ins_class payer n prop #> #> 1 Primary Anthem 2 0.2 #> 2 Primary UnitedHealth 2 0.2 #> 3 Primary BCBS 1 0.1 #> 4 Primary Medicaid 1 0.1 #> 5 Secondary Centene 1 0.1 #> 6 Secondary Cigna 1 0.1 #> 7 Secondary Medicaid 1 0.1 #> 8 Secondary Medicare 1 0.1"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_wide.html","id":null,"dir":"Reference","previous_headings":"","what":"Count rows and columns and pivot to wide format — count_wide","title":"Count rows and columns and pivot to wide format — count_wide","text":"Count rows columns pivot wide format","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_wide.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Count rows and columns and pivot to wide format — count_wide","text":"","code":"count_wide(df, rows, cols)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_wide.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Count rows and columns and pivot to wide format — count_wide","text":"df rows specifying rows count cols specifying columns count","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_wide.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Count rows and columns and pivot to wide format — count_wide","text":"","code":"fuimus:::forager_data(10) |> count_wide( c(ins_class), payer) #> # A tibble: 2 × 7 #> ins_class Anthem BCBS Centene Cigna Medicaid UnitedHealth #> #> 1 Primary 1 1 2 1 1 1 #> 2 Secondary 1 1 1 0 0 0"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/create_vec.html","id":null,"dir":"Reference","previous_headings":"","what":"Generate code from a vector of values — create_vec","title":"Generate code from a vector of values — create_vec","text":"Generate code vector values","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/create_vec.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Generate code from a vector of values — create_vec","text":"","code":"create_vec(x, collapse = \", \", enclose = c(\"x = c(\", \")\"), style = TRUE, ...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/create_vec.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Generate code from a vector of values — create_vec","text":"x vector collapse Separator sequences, default \", \" enclose (optional) Vector length(x) == 2 enclose output style Apply styler::style_text() output, default TRUE ... Additional arguments passed styler::tidyverse_style()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/create_vec.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Generate code from a vector of values — create_vec","text":" vector valid R code","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/create_vec.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Generate code from a vector of values — create_vec","text":"","code":"hcpcs <- c( \"63091\", \"81536\", \"99305\", \"63012\", \"78835\", \"E0185\", \"44408\", \"87485\", \"36015\", \"0581F\", \"33478\", \"21184\", \"42999\", \"15155\", \"76705\", \"23412\", \"99406\", \"0585T\", \"0272T\", \"92507\") create_vec(x = hcpcs) #> x <- c(\"63091\", \"81536\", \"99305\", \"63012\", \"78835\", \"E0185\", \"44408\", \"87485\", \"36015\", \"0581F\", \"33478\", \"21184\", \"42999\", \"15155\", \"76705\", \"23412\", \"99406\", \"0585T\", \"0272T\", \"92507\")"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/delister.html","id":null,"dir":"Reference","previous_headings":"","what":"Wrapper for unlist(), with use.names set to FALSE — delister","title":"Wrapper for unlist(), with use.names set to FALSE — delister","text":"Wrapper unlist(), use.names set FALSE","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/delister.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Wrapper for unlist(), with use.names set to FALSE — delister","text":"","code":"delister(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/delister.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Wrapper for unlist(), with use.names set to FALSE — delister","text":"x named ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/delister.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Wrapper for unlist(), with use.names set to FALSE — delister","text":"unnamed vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/delister.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Wrapper for unlist(), with use.names set to FALSE — delister","text":"","code":"delister(list(x = \"XYZ\")) #> [1] \"XYZ\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/density.html","id":null,"dir":"Reference","previous_headings":"","what":"Density plot — density","title":"Density plot — density","text":"Density plot","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/density.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Density plot — density","text":"","code":"density(df, var, color, facets, binwidth = 0.1)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/density.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Density plot — density","text":"df df var var color color var facets facets var binwidth binwidth","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/density.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Density plot — density","text":"ggplot2 density plot","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/density.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Density plot — density","text":"","code":"ggplot2::diamonds |> density(carat) ggplot2::diamonds |> density(carat, cut) ggplot2::diamonds |> density(carat, cut, clarity)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/describe.html","id":null,"dir":"Reference","previous_headings":"","what":"Describe a dataset — describe","title":"Describe a dataset — describe","text":"Describe dataset","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/describe.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Describe a dataset — describe","text":"","code":"describe(df, ...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/describe.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Describe a dataset — describe","text":"df desc ... tidyselect columns","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/describe.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Describe a dataset — describe","text":" summary statistics","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/describe.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Describe a dataset — describe","text":"","code":"describe(fuimus:::provider_data(2000:2020)) #> # A tibble: 3 × 13 #> variable type n amean gmean sd iqr median mad range hist #> #> 1 group 42 1 1 0 0 1 0 [1 -… ▁▁▇▁▁ #> 2 year 42 2010 2010. 6.13 10 2010 7.41 [200… ▇▆▆▆▆ #> 3 net_payment 42 14968. 14688. 2893. 5030. 14906. 3896. [101… ▅▇▃▆▇ #> # ℹ 2 more variables: n_uniq , top_5 describe( fuimus:::forager_data(200), !dplyr::starts_with(\"date\") ) #> # A tibble: 4 × 13 #> variable type n amean gmean sd iqr median mad range hist n_uniq #> #> 1 balance 200 125. 94.7 88.5 103. 111. 77.5 [3.5… ▇▆▂▁▁ 200 #> 2 claim_id 200 3 3 0 0 3 0 [3 -… ▁▁▇▁▁ 200 #> 3 payer 200 7.13 6.78 2.34 2 7 1.48 [4 -… ▅▇▅▁▃ 8 #> 4 ins_cla… 200 8.08 8.02 0.999 2 9 0 [7 -… ▇▁▁▁▇ 2 #> # ℹ 1 more variable: top_5 "},{"path":"https://andrewallenbruce.github.io/fuimus/reference/df_2_chr.html","id":null,"dir":"Reference","previous_headings":"","what":"Coerce numeric columns to character — df_2_chr","title":"Coerce numeric columns to character — df_2_chr","text":"Coerce numeric columns character","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/df_2_chr.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Coerce numeric columns to character — df_2_chr","text":"","code":"df_2_chr(df)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/df_2_chr.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Coerce numeric columns to character — df_2_chr","text":"df ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/df_2_chr.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Coerce numeric columns to character — df_2_chr","text":" numeric columns coerced character","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/df_2_chr.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Coerce numeric columns to character — df_2_chr","text":"","code":"df_2_chr(dplyr::tibble(x = 20:35)) #> # A tibble: 16 × 1 #> x #> #> 1 20 #> 2 21 #> 3 22 #> 4 23 #> 5 24 #> 6 25 #> 7 26 #> 8 27 #> 9 28 #> 10 29 #> 11 30 #> 12 31 #> 13 32 #> 14 33 #> 15 34 #> 16 35"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/display_long.html","id":null,"dir":"Reference","previous_headings":"","what":"Pivot data frame to long format for easy printing — display_long","title":"Pivot data frame to long format for easy printing — display_long","text":"Pivot data frame long format easy printing","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/display_long.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Pivot data frame to long format for easy printing — display_long","text":"","code":"display_long(df, cols = dplyr::everything())"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/display_long.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Pivot data frame to long format for easy printing — display_long","text":"df pivot long cols vector columns pivot long, default dplyr::everything()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/display_long.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Pivot data frame to long format for easy printing — display_long","text":" long format","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/display_long.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Pivot data frame to long format for easy printing — display_long","text":"","code":"x <- dplyr::tibble( a = 1:10, b = letters[1:10], c = 11:20, d = LETTERS[1:10], e = 21:30) display_long(x) #> # A tibble: 50 × 2 #> name value #> #> 1 a 1 #> 2 b a #> 3 c 11 #> 4 d A #> 5 e 21 #> 6 a 2 #> 7 b b #> 8 c 12 #> 9 d B #> 10 e 22 #> # ℹ 40 more rows"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/duration_vec.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate the duration between two dates — duration_vec","title":"Calculate the duration between two dates — duration_vec","text":"Calculate duration two dates","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/duration_vec.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate the duration between two dates — duration_vec","text":"","code":"duration_vec(from, to)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/duration_vec.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate the duration between two dates — duration_vec","text":" Start date End date","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/duration_vec.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Calculate the duration between two dates — duration_vec","text":" vector duration two dates","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/duration_vec.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate the duration between two dates — duration_vec","text":"","code":"duration_vec( from = lubridate::today() - 366, to = lubridate::today()) #> [1] \"31622400s (~1 years)\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/expand_date_range.html","id":null,"dir":"Reference","previous_headings":"","what":"Expand date range to include all dates — expand_date_range","title":"Expand date range to include all dates — expand_date_range","text":"Expand date range include dates","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/expand_date_range.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Expand date range to include all dates — expand_date_range","text":"","code":"expand_date_range(x, name)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/expand_date_range.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Expand date range to include all dates — expand_date_range","text":"x vector dates name new column name vector dates","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/expand_date_range.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Expand date range to include all dates — expand_date_range","text":" expanded date range","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/expand_date_range.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Expand date range to include all dates — expand_date_range","text":"","code":"expand_date_range( seq.Date( from = as.Date(\"2020-01-01\"), to = as.Date(\"2020-01-01\") + 2057, by = 1), \"date\" ) #> # A tibble: 2,058 × 10 #> date year quarter month month_l week day yday wday wday_l #> #> 1 2020-01-01 2020 1 1 Jan 1 1 0 3 Wed #> 2 2020-01-02 2020 1 1 Jan 1 2 1 4 Thu #> 3 2020-01-03 2020 1 1 Jan 1 3 2 5 Fri #> 4 2020-01-04 2020 1 1 Jan 1 4 3 6 Sat #> 5 2020-01-05 2020 1 1 Jan 1 5 4 7 Sun #> 6 2020-01-06 2020 1 1 Jan 1 6 5 1 Mon #> 7 2020-01-07 2020 1 1 Jan 1 7 6 2 Tue #> 8 2020-01-08 2020 1 1 Jan 2 8 7 3 Wed #> 9 2020-01-09 2020 1 1 Jan 2 9 8 4 Thu #> 10 2020-01-10 2020 1 1 Jan 2 10 9 5 Fri #> # ℹ 2,048 more rows"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/fancy_ts.html","id":null,"dir":"Reference","previous_headings":"","what":"Plots a fancy time series — fancy_ts","title":"Plots a fancy time series — fancy_ts","text":"Plots fancy time series","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/fancy_ts.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Plots a fancy time series — fancy_ts","text":"","code":"fancy_ts(df, val, group)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/fancy_ts.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Plots a fancy time series — fancy_ts","text":"df data.frame val value var group group var","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/fancy_ts.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Plots a fancy time series — fancy_ts","text":"tibble summarized data","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/fancy_ts.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Plots a fancy time series — fancy_ts","text":"","code":"df <- dplyr::tibble( dist1 = sort(rnorm(50, 5, 2)), dist2 = sort(rnorm(50, 8, 3)), dist4 = sort(rnorm(50, 15, 1)), date = seq.Date( as.Date(\"2022-01-01\"), as.Date(\"2022-04-10\"), by = \"2 days\") ) |> tidyr::pivot_longer( cols = -date, names_to = \"dist_name\", values_to = \"value\") df #> # A tibble: 150 × 3 #> date dist_name value #> #> 1 2022-01-01 dist1 1.67 #> 2 2022-01-01 dist2 -0.251 #> 3 2022-01-01 dist4 12.0 #> 4 2022-01-03 dist1 2.24 #> 5 2022-01-03 dist2 2.81 #> 6 2022-01-03 dist4 13.2 #> 7 2022-01-05 dist1 2.60 #> 8 2022-01-05 dist2 3.25 #> 9 2022-01-05 dist4 13.3 #> 10 2022-01-07 dist1 2.60 #> # ℹ 140 more rows fancy_ts(df, value, dist_name) + gg_theme()"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/geomean.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate Geometric Mean — geomean","title":"Calculate Geometric Mean — geomean","text":"Average rate_of_return()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/geomean.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate Geometric Mean — geomean","text":"","code":"geomean(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/geomean.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate Geometric Mean — geomean","text":"x numeric vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/geomean.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate Geometric Mean — geomean","text":"","code":"x <- fuimus:::provider_data(2020:2025) x |> dplyr::group_by(group) |> rate_of_return(net_payment) #> # A tibble: 12 × 4 #> year group net_payment net_payment_ror #> #> 1 2020 A 13632 1 #> 2 2021 A 19642 1.44 #> 3 2022 A 11209 0.571 #> 4 2023 A 16767 1.50 #> 5 2024 A 12592 0.751 #> 6 2025 A 11931 0.948 #> 7 2020 B 14636 1 #> 8 2021 B 13224 0.904 #> 9 2022 B 13017 0.984 #> 10 2023 B 17982 1.38 #> 11 2024 B 11889 0.661 #> 12 2025 B 19969 1.68 x |> dplyr::group_by(group) |> rate_of_return(net_payment) |> dplyr::summarise(gmean = geomean(net_payment_ror), .by = group) #> # A tibble: 2 × 2 #> group gmean #> #> 1 A 0.978 #> 2 B 1.05"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/get_pin.html","id":null,"dir":"Reference","previous_headings":"","what":"Get a pinned dataset from a pins board — get_pin","title":"Get a pinned dataset from a pins board — get_pin","text":"Get pinned dataset pins board","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/get_pin.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get a pinned dataset from a pins board — get_pin","text":"","code":"get_pin(pin, ...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/get_pin.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get a pinned dataset from a pins board — get_pin","text":"pin string name pinned dataset ... additional arguments passed mount_board()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/get_pin.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get a pinned dataset from a pins board — get_pin","text":" ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gg_theme.html","id":null,"dir":"Reference","previous_headings":"","what":"ggplot2 theme — gg_theme","title":"ggplot2 theme — gg_theme","text":"ggplot2 theme","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gg_theme.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ggplot2 theme — gg_theme","text":"","code":"gg_theme()"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gg_theme.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"ggplot2 theme — gg_theme","text":"ggplot theme","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gg_theme.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ggplot2 theme — gg_theme","text":"","code":"ggplot2::diamonds |> histogram(carat, 0.1) + gg_theme()"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gh_raw.html","id":null,"dir":"Reference","previous_headings":"","what":"Return GitHub raw url — gh_raw","title":"Return GitHub raw url — gh_raw","text":"Return GitHub raw url","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gh_raw.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Return GitHub raw url — gh_raw","text":"","code":"gh_raw(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gh_raw.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Return GitHub raw url — gh_raw","text":"x string","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gh_raw.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Return GitHub raw url — gh_raw","text":" GitHub raw url","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gh_raw.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Return GitHub raw url — gh_raw","text":"","code":"gh_raw(\"andrewbruce/example/main/inst/pins/\") #> [1] \"https://raw.githubusercontent.com/andrewbruce/example/main/inst/pins/\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/glue_chr.html","id":null,"dir":"Reference","previous_headings":"","what":"Apply as.character() to glue() — glue_chr","title":"Apply as.character() to glue() — glue_chr","text":"Apply .character() glue()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/glue_chr.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Apply as.character() to glue() — glue_chr","text":"","code":"glue_chr(...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/glue_chr.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Apply as.character() to glue() — glue_chr","text":"... dots pass glue function","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/glue_chr.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Apply as.character() to glue() — glue_chr","text":" vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/glue_data_chr.html","id":null,"dir":"Reference","previous_headings":"","what":"Apply as.character() to glue_data() — glue_data_chr","title":"Apply as.character() to glue_data() — glue_data_chr","text":"Apply .character() glue_data()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/glue_data_chr.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Apply as.character() to glue_data() — glue_data_chr","text":"","code":"glue_data_chr(.x, ...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/glue_data_chr.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Apply as.character() to glue_data() — glue_data_chr","text":".x vector pass glue_data() ... dots pass glue function","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/glue_data_chr.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Apply as.character() to glue_data() — glue_data_chr","text":" vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/grapes-nin-grapes.html","id":null,"dir":"Reference","previous_headings":"","what":"Infix operator for not in statements — %nin%","title":"Infix operator for not in statements — %nin%","text":"Infix operator statements","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/grapes-nin-grapes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Infix operator for not in statements — %nin%","text":"","code":"x %nin% table"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/grapes-nin-grapes.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Infix operator for not in statements — %nin%","text":"x vector table vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/grapes-nin-grapes.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Infix operator for not in statements — %nin%","text":"logical vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/grapes-nn-grapes.html","id":null,"dir":"Reference","previous_headings":"","what":"Infix operator for if (!is.null(x)) y else x statements — %nn%","title":"Infix operator for if (!is.null(x)) y else x statements — %nn%","text":"Infix operator (!.null(x)) y else x statements","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/grapes-nn-grapes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Infix operator for if (!is.null(x)) y else x statements — %nn%","text":"","code":"x %nn% y"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/grapes-nn-grapes.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Infix operator for if (!is.null(x)) y else x statements — %nn%","text":"x, y vectors","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/grapes-nn-grapes.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Infix operator for if (!is.null(x)) y else x statements — %nn%","text":"y x NULL, else x","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/grapes-nn-grapes.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Infix operator for if (!is.null(x)) y else x statements — %nn%","text":"","code":"NULL %nn% 123456L #> NULL \"abc\" %nn% 123456L #> [1] 123456"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gt_marks.html","id":null,"dir":"Reference","previous_headings":"","what":"gt Marks — gt_marks","title":"gt Marks — gt_marks","text":"gt Marks","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gt_marks.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"gt Marks — gt_marks","text":"","code":"gt_marks(gt_tbl, cols)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gt_marks.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"gt Marks — gt_marks","text":"gt_tbl object cols columns target","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gt_marks.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"gt Marks — gt_marks","text":" object marks","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gt_marks.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"gt Marks — gt_marks","text":"","code":"dplyr::tibble(pass = c(TRUE, FALSE, TRUE, FALSE)) |> gt::gt() |> gt_marks(cols = pass) pass"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/histogram.html","id":null,"dir":"Reference","previous_headings":"","what":"Histogram — histogram","title":"Histogram — histogram","text":"Histogram","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/histogram.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Histogram — histogram","text":"","code":"histogram(df, var, binwidth)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/histogram.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Histogram — histogram","text":"df data frame var var binwidth binwidth","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/histogram.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Histogram — histogram","text":"ggplot2 histogram","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/histogram.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Histogram — histogram","text":"","code":"ggplot2::diamonds |> histogram(carat, 0.1)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/invert_named.html","id":null,"dir":"Reference","previous_headings":"","what":"Invert a named vector — invert_named","title":"Invert a named vector — invert_named","text":"Invert named vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/invert_named.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Invert a named vector — invert_named","text":"","code":"invert_named(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/invert_named.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Invert a named vector — invert_named","text":"x named vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/invert_named.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Invert a named vector — invert_named","text":"named vector names values inverted","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/invert_named.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Invert a named vector — invert_named","text":"","code":"invert_named(x = c(name = \"element\")) #> element #> \"name\" invert_named(x = c(element = \"name\")) #> name #> \"element\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/iqr_na.html","id":null,"dir":"Reference","previous_headings":"","what":"IQR() with NA removal — iqr_na","title":"IQR() with NA removal — iqr_na","text":"IQR() NA removal","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/iqr_na.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"IQR() with NA removal — iqr_na","text":"","code":"iqr_na(x, ...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/iqr_na.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"IQR() with NA removal — iqr_na","text":"x vector ... additional arguments pass stats::IQR()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/iqr_na.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"IQR() with NA removal — iqr_na","text":"","code":"iqr_na(c(1, 2, NA)) #> [1] 0.5"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_directory.html","id":null,"dir":"Reference","previous_headings":"","what":"Test if a path is a directory — is_directory","title":"Test if a path is a directory — is_directory","text":"Test path directory","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_directory.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Test if a path is a directory — is_directory","text":"","code":"is_directory(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_directory.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Test if a path is a directory — is_directory","text":"x directory path check","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_directory.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Test if a path is a directory — is_directory","text":"named vector, names give paths. given object exist, NA returned.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_directory.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Test if a path is a directory — is_directory","text":"","code":"is_directory(\"C:/\") #> C:/ #> FALSE"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_readable.html","id":null,"dir":"Reference","previous_headings":"","what":"Test if a path is readable — is_readable","title":"Test if a path is readable — is_readable","text":"Test path readable","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_readable.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Test if a path is readable — is_readable","text":"","code":"is_readable(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_readable.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Test if a path is readable — is_readable","text":"x vector one paths","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_readable.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Test if a path is readable — is_readable","text":" vector, names corresponding input path.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_readable.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Test if a path is readable — is_readable","text":"","code":"is_readable(\"D:/\") #> D:/ #> FALSE"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/list_pins.html","id":null,"dir":"Reference","previous_headings":"","what":"List pins from a pins board — list_pins","title":"List pins from a pins board — list_pins","text":"List pins pins board","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/list_pins.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"List pins from a pins board — list_pins","text":"","code":"list_pins(...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/list_pins.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"List pins from a pins board — list_pins","text":"... arguments pass mount_board()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/list_pins.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"List pins from a pins board — list_pins","text":" pins","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mad_na.html","id":null,"dir":"Reference","previous_headings":"","what":"mad() with NA removal — mad_na","title":"mad() with NA removal — mad_na","text":"Compute median absolute deviation, .e., (lo-/hi-) median absolute deviations median, (default) adjust factor asymptotically normal consistency.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mad_na.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"mad() with NA removal — mad_na","text":"","code":"mad_na(x, ...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mad_na.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"mad() with NA removal — mad_na","text":"x vector ... additional arguments pass stats::mad()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mad_na.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"mad() with NA removal — mad_na","text":"","code":"mad_na(c(1, 2, NA)) #> [1] 0.7413"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/make_interval.html","id":null,"dir":"Reference","previous_headings":"","what":"Create interval, period and time length columns from a start and end date — make_interval","title":"Create interval, period and time length columns from a start and end date — make_interval","text":"Create interval, period time length columns start end date","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/make_interval.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create interval, period and time length columns from a start and end date — make_interval","text":"","code":"make_interval(df, start, end = lubridate::today())"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/make_interval.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create interval, period and time length columns from a start and end date — make_interval","text":"df start Start date column end End date column","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/make_interval.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create interval, period and time length columns from a start and end date — make_interval","text":" ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/make_interval.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create interval, period and time length columns from a start and end date — make_interval","text":"","code":"dplyr::tibble(date = lubridate::today() - 366) |> make_interval(start = date) #> # A tibble: 1 × 4 #> date interval period timelength_days #> #> 1 2023-08-08 2023-08-08 UTC--2024-08-08 UTC 1y 0m 0d 0H 0M 0S 366"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mean_na.html","id":null,"dir":"Reference","previous_headings":"","what":"mean() with NA removal — mean_na","title":"mean() with NA removal — mean_na","text":"mean() NA removal","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mean_na.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"mean() with NA removal — mean_na","text":"","code":"mean_na(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mean_na.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"mean() with NA removal — mean_na","text":"x vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mean_na.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"mean() with NA removal — mean_na","text":"","code":"mean_na(c(1, 2, NA)) #> [1] 1.5"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/median_na.html","id":null,"dir":"Reference","previous_headings":"","what":"median() with NA removal — median_na","title":"median() with NA removal — median_na","text":"median() NA removal","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/median_na.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"median() with NA removal — median_na","text":"","code":"median_na(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/median_na.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"median() with NA removal — median_na","text":"x vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/median_na.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"median() with NA removal — median_na","text":"","code":"median_na(c(1, 2, NA)) #> [1] 1.5"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/months_regex.html","id":null,"dir":"Reference","previous_headings":"","what":"Regular expression for matching month names — months_regex","title":"Regular expression for matching month names — months_regex","text":"Regular expression matching month names","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/months_regex.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Regular expression for matching month names — months_regex","text":"","code":"months_regex()"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/months_regex.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Regular expression for matching month names — months_regex","text":" string regex matching month names","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/months_regex.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Regular expression for matching month names — months_regex","text":"","code":"months_regex() #> [1] \"(Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|Aug(?:ust)?|Sep(?:tember)?|Oct(?:ober)?|Nov(?:ember)?|Dec(?:ember)?)\\\\s+(\\\\d{1,2})\\\\,\\\\s+(\\\\d{4})\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mount_board.html","id":null,"dir":"Reference","previous_headings":"","what":"Mount pins board — mount_board","title":"Mount pins board — mount_board","text":"Mount pins board","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mount_board.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Mount pins board — mount_board","text":"","code":"mount_board(source = c(\"local\", \"remote\"), package = \"fuimus\")"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mount_board.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Mount pins board — mount_board","text":"source \"local\" \"remote\" package package name","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mount_board.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Mount pins board — mount_board","text":" ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/na_if_common.html","id":null,"dir":"Reference","previous_headings":"","what":"Convert various character strings to NA — na_if_common","title":"Convert various character strings to NA — na_if_common","text":"Convert various character strings NA","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/na_if_common.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Convert various character strings to NA — na_if_common","text":"","code":"na_if_common(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/na_if_common.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Convert various character strings to NA — na_if_common","text":"x vector convert","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/na_if_common.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Convert various character strings to NA — na_if_common","text":" vector converted NA values","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/na_if_common.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Convert various character strings to NA — na_if_common","text":"","code":"na_if_common(x = c(\" \", \"*\", \"--\", \"N/A\", \"\", \"A\", \"B\")) #> [1] NA NA NA NA NA \"A\" \"B\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/named_group_split.html","id":null,"dir":"Reference","previous_headings":"","what":"Split a tibble by Groups with Named List Output — named_group_split","title":"Split a tibble by Groups with Named List Output — named_group_split","text":"function takes table, groups one variables, splits grouped data list. resulting list names derived unique combinations grouping variables.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/named_group_split.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Split a tibble by Groups with Named List Output — named_group_split","text":"","code":"named_group_split(df, ...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/named_group_split.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Split a tibble by Groups with Named List Output — named_group_split","text":"df split ... One unquoted variables group split df. Variables can separated commas.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/named_group_split.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Split a tibble by Groups with Named List Output — named_group_split","text":"named tibbles, names derived unique combinations grouping variables, separated \"_\".","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/named_group_split.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Split a tibble by Groups with Named List Output — named_group_split","text":"","code":"x <- dplyr::tibble( zip = c(\"Data_Weekly.zip\", \"Data_Weekly.zip\", \"Data_April.zip\", \"Deactivated.zip\"), file = c( \"npidata.csv\", \"npidata2.csv\", \"endpoint.csv\", \"Deactivated.xlsx\")) x #> # A tibble: 4 × 2 #> zip file #> #> 1 Data_Weekly.zip npidata.csv #> 2 Data_Weekly.zip npidata2.csv #> 3 Data_April.zip endpoint.csv #> 4 Deactivated.zip Deactivated.xlsx named_group_split(x, zip) #> $Data_April.zip #> # A tibble: 1 × 2 #> zip file #> #> 1 Data_April.zip endpoint.csv #> #> $Data_Weekly.zip #> # A tibble: 2 × 2 #> zip file #> #> 1 Data_Weekly.zip npidata.csv #> 2 Data_Weekly.zip npidata2.csv #> #> $Deactivated.zip #> # A tibble: 1 × 2 #> zip file #> #> 1 Deactivated.zip Deactivated.xlsx #>"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/new_value.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate the new value from the old value and the percentage change between the two values — new_value","title":"Calculate the new value from the old value and the percentage change between the two values — new_value","text":"Calculate new value old value percentage change two values","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/new_value.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate the new value from the old value and the percentage change between the two values — new_value","text":"","code":"new_value(old, percentage_change)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/new_value.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate the new value from the old value and the percentage change between the two values — new_value","text":"old older value percentage_change percentage change","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/new_value.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Calculate the new value from the old value and the percentage change between the two values — new_value","text":" vector new value","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/new_value.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate the new value from the old value and the percentage change between the two values — new_value","text":"","code":"new_value(old = 942482, percentage_change = 0.007700943) #> [1] 949740 new_value(old = 1132783, percentage_change = -0.1679942) #> [1] 942482 # If the value of an object increased by 220%, # from the original value of # $500,000, what is it worth now? new_value(old = 500000, percentage_change = 2.2) #> [1] 1600000"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/null_if_empty.html","id":null,"dir":"Reference","previous_headings":"","what":"Return NULL if the input is empty, otherwise return the input — null_if_empty","title":"Return NULL if the input is empty, otherwise return the input — null_if_empty","text":"Return NULL input empty, otherwise return input","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/null_if_empty.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Return NULL if the input is empty, otherwise return the input — null_if_empty","text":"","code":"null_if_empty(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/null_if_empty.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Return NULL if the input is empty, otherwise return the input — null_if_empty","text":"x vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/null_if_empty.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Return NULL if the input is empty, otherwise return the input — null_if_empty","text":"vector NULL","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/null_if_empty.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Return NULL if the input is empty, otherwise return the input — null_if_empty","text":"","code":"null_if_empty(c()) #> NULL null_if_empty(c(1)) #> [1] 1"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/pad_number.html","id":null,"dir":"Reference","previous_headings":"","what":"Pad numbers with zeroes — pad_number","title":"Pad numbers with zeroes — pad_number","text":"Pad numbers zeroes","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/pad_number.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Pad numbers with zeroes — pad_number","text":"","code":"pad_number(x, digits = NULL)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/pad_number.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Pad numbers with zeroes — pad_number","text":"x vector numbers digits single integer; number zeroes pad x . left NULL (default), use result max(nchar(x))","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/pad_number.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Pad numbers with zeroes — pad_number","text":" vector padded numbers","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/pad_number.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Pad numbers with zeroes — pad_number","text":"","code":"pad_number(c(56, 2584, 010, 912, 12222)) #> [1] \"00056\" \"02584\" \"00010\" \"00912\" \"12222\" pad_number(c(56, 2584, 010, 912, 00012222), digits = 10L) #> [1] \"0000000056\" \"0000002584\" \"0000000010\" \"0000000912\" \"0000012222\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_calculator.html","id":null,"dir":"Reference","previous_headings":"","what":"Percentage calculator — percentage_calculator","title":"Percentage calculator — percentage_calculator","text":"p% b, : p = /b = p * b b = /p","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_calculator.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Percentage calculator — percentage_calculator","text":"","code":"percentage_calculator(a, b)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_calculator.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Percentage calculator — percentage_calculator","text":", b values","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_calculator.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Percentage calculator — percentage_calculator","text":" vector percentage difference","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_calculator.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Percentage calculator — percentage_calculator","text":"Since absolute value taken change (difference) values, order numbers matter.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_calculator.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Percentage calculator — percentage_calculator","text":"","code":"percentage_calculator(2500, 133) #> $p #> [1] 18.79699 #> #> $a #> [1] 2500 #> #> $b #> [1] 133 #> percentage_calculator(133, 2500) #> $p #> [1] 0.0532 #> #> $a #> [1] 133 #> #> $b #> [1] 2500 #>"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_change.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate the percentage change between two values — percentage_change","title":"Calculate the percentage change between two values — percentage_change","text":"Percentage change obtained dividing change value original value.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_change.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate the percentage change between two values — percentage_change","text":"","code":"percentage_change(new, old)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_change.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate the percentage change between two values — percentage_change","text":"new newer value old older value","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_change.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Calculate the percentage change between two values — percentage_change","text":" vector percentage change","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_change.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Calculate the percentage change between two values — percentage_change","text":"result positive, increase. result negative, decrease.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_change.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate the percentage change between two values — percentage_change","text":"","code":"percentage_change(new = 949740, old = 942482) #> [1] 0.007700943 percentage_change(new = 942482, old = 1132783) #> [1] -0.1679942"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_difference.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate the percentage difference between two values — percentage_difference","title":"Calculate the percentage difference between two values — percentage_difference","text":"Percentage difference obtained dividing absolute value change average values multiplying 100.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_difference.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate the percentage difference between two values — percentage_difference","text":"","code":"percentage_difference(x, y)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_difference.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate the percentage difference between two values — percentage_difference","text":"x, y values determine percent difference , order matter","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_difference.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Calculate the percentage difference between two values — percentage_difference","text":" vector percentage difference","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_difference.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Calculate the percentage difference between two values — percentage_difference","text":"Since absolute value taken change (difference) values, order numbers matter.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_difference.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate the percentage difference between two values — percentage_difference","text":"","code":"percentage_difference(949740, 942482) #> [1] 0.007671404 percentage_difference(942482, 1132783) #> [1] 0.1833992"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/range_na.html","id":null,"dir":"Reference","previous_headings":"","what":"range() with NA removal — range_na","title":"range() with NA removal — range_na","text":"range() NA removal","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/range_na.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"range() with NA removal — range_na","text":"","code":"range_na(...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/range_na.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"range() with NA removal — range_na","text":"... vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/range_na.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"range() with NA removal — range_na","text":"","code":"range_na(c(1, 2, NA)) #> [1] 1 2"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/rate_of_return.html","id":null,"dir":"Reference","previous_headings":"","what":"Lagged rate of return — rate_of_return","title":"Lagged rate of return — rate_of_return","text":"Lagged rate return","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/rate_of_return.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Lagged rate of return — rate_of_return","text":"","code":"rate_of_return(df, col, n = 1, fill_na = 1L)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/rate_of_return.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Lagged rate of return — rate_of_return","text":"df data frame col numeric column n values offset fill_na fill value NAs; default 1","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/rate_of_return.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Lagged rate of return — rate_of_return","text":"","code":"fuimus:::provider_data(2020:2025) |> dplyr::group_by(group) |> rate_of_return(net_payment) #> # A tibble: 12 × 4 #> year group net_payment net_payment_ror #> #> 1 2020 A 13586 1 #> 2 2021 A 19379 1.43 #> 3 2022 A 18033 0.931 #> 4 2023 A 18159 1.01 #> 5 2024 A 17377 0.957 #> 6 2025 A 11267 0.648 #> 7 2020 B 14052 1 #> 8 2021 B 17423 1.24 #> 9 2022 B 11881 0.682 #> 10 2023 B 10237 0.862 #> 11 2024 B 10245 1.00 #> 12 2025 B 12955 1.26"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/remove_quiet.html","id":null,"dir":"Reference","previous_headings":"","what":"Remove empty rows and columns — remove_quiet","title":"Remove empty rows and columns — remove_quiet","text":"Remove empty rows columns","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/remove_quiet.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Remove empty rows and columns — remove_quiet","text":"","code":"remove_quiet(df, ...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/remove_quiet.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Remove empty rows and columns — remove_quiet","text":"df data frame ... additional arguments pass janitor::remove_empty()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/remove_quiet.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Remove empty rows and columns — remove_quiet","text":"","code":"x <- dplyr::tibble( x = c(1, 2, NA), y = c(NA, NA, NA)) x #> # A tibble: 3 × 2 #> x y #> #> 1 1 NA #> 2 2 NA #> 3 NA NA remove_quiet(x) #> # A tibble: 2 × 1 #> x #> #> 1 1 #> 2 2"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/remove_quotes.html","id":null,"dir":"Reference","previous_headings":"","what":"Remove single or double quotes from a character string — remove_quotes","title":"Remove single or double quotes from a character string — remove_quotes","text":"Remove single double quotes character string","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/remove_quotes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Remove single or double quotes from a character string — remove_quotes","text":"","code":"remove_quotes(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/remove_quotes.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Remove single or double quotes from a character string — remove_quotes","text":"x vector convert","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/remove_quotes.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Remove single or double quotes from a character string — remove_quotes","text":" vector removed quotes","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/remove_quotes.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Remove single or double quotes from a character string — remove_quotes","text":"","code":"remove_quotes(x = c(\"'\", '\"')) #> [1] \"\" \"\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/rename_seq.html","id":null,"dir":"Reference","previous_headings":"","what":"Generate a sequence of numbers with a new prefix — rename_seq","title":"Generate a sequence of numbers with a new prefix — rename_seq","text":"Generate sequence numbers new prefix","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/rename_seq.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Generate a sequence of numbers with a new prefix — rename_seq","text":"","code":"rename_seq( n, new, between = \" = \", old, collapse = \", \", enclose = NULL, style = TRUE )"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/rename_seq.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Generate a sequence of numbers with a new prefix — rename_seq","text":"n Numeric sequence generate new New prefix Separator new old, default \" = \" old Old prefix collapse Separator sequences, default \", \" enclose (optional) Vector length(x) == 2 enclose output style Apply styler::style_text() output, default TRUE","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/rename_seq.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Generate a sequence of numbers with a new prefix — rename_seq","text":" collapsed vector n sequences","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/rename_seq.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Generate a sequence of numbers with a new prefix — rename_seq","text":"","code":"rename_seq( n = 10, new = \"id_issuer_\", between = \" = \", old = \"Other.ID.Issuer.\", enclose = c(\"x = c(\", \")\"), collapse = \",\\n \", style = TRUE) #> x <- c( #> id_issuer_1 = Other.ID.Issuer.1, #> id_issuer_2 = Other.ID.Issuer.2, #> id_issuer_3 = Other.ID.Issuer.3, #> id_issuer_4 = Other.ID.Issuer.4, #> id_issuer_5 = Other.ID.Issuer.5, #> id_issuer_6 = Other.ID.Issuer.6, #> id_issuer_7 = Other.ID.Issuer.7, #> id_issuer_8 = Other.ID.Issuer.8, #> id_issuer_9 = Other.ID.Issuer.9, #> id_issuer_10 = Other.ID.Issuer.10 #> )"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/roundup.html","id":null,"dir":"Reference","previous_headings":"","what":"Round a numeric vector up to the nearest decimal place — roundup","title":"Round a numeric vector up to the nearest decimal place — roundup","text":"Wrapper around janitor::round_half_up()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/roundup.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Round a numeric vector up to the nearest decimal place — roundup","text":"","code":"roundup(x, digits = 2)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/roundup.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Round a numeric vector up to the nearest decimal place — roundup","text":"x numeric vector digits Number decimal places round ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/roundup.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Round a numeric vector up to the nearest decimal place — roundup","text":"numeric vector rounded nearest decimal place","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sd_na.html","id":null,"dir":"Reference","previous_headings":"","what":"sd() with NA removal — sd_na","title":"sd() with NA removal — sd_na","text":"sd() NA removal","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sd_na.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"sd() with NA removal — sd_na","text":"","code":"sd_na(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sd_na.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"sd() with NA removal — sd_na","text":"x vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sd_na.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"sd() with NA removal — sd_na","text":"","code":"sd_na(c(1, 2, NA)) #> [1] 0.7071068"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in.html","id":null,"dir":"Reference","previous_headings":"","what":"Search in data frame — search_in","title":"Search in data frame — search_in","text":"Search data frame","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Search in data frame — search_in","text":"","code":"search_in(df, dfcol, search)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Search in data frame — search_in","text":"df dfcol specifying column search search specifying search term","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Search in data frame — search_in","text":" ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Search in data frame — search_in","text":"","code":"x <- dplyr::tibble(y = 1:10, z = letters[1:10]) search_in(df = x, dfcol = x$z, search = c(\"a\", \"j\")) #> # A tibble: 2 × 2 #> y z #> #> 1 1 a #> 2 10 j"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in_if.html","id":null,"dir":"Reference","previous_headings":"","what":"Search in data frame column if search term is not NULL — search_in_if","title":"Search in data frame column if search term is not NULL — search_in_if","text":"Search data frame column search term NULL","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in_if.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Search in data frame column if search term is not NULL — search_in_if","text":"","code":"search_in_if(df, dfcol, search)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in_if.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Search in data frame column if search term is not NULL — search_in_if","text":"df dfcol specifying column search search specifying search term","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in_if.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Search in data frame column if search term is not NULL — search_in_if","text":" ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in_if.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Search in data frame column if search term is not NULL — search_in_if","text":"","code":"x <- dplyr::tibble( y = 1:10, z = letters[1:10]) search_in_if(df = x, dfcol = x$z, search = c(\"a\", \"j\")) #> # A tibble: 2 × 2 #> y z #> #> 1 1 a #> 2 10 j search_in_if(df = x, dfcol = x$z, search = NULL) #> # A tibble: 10 × 2 #> y z #> #> 1 1 a #> 2 2 b #> 3 3 c #> 4 4 d #> 5 5 e #> 6 6 f #> 7 7 g #> 8 8 h #> 9 9 i #> 10 10 j"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in_if_args.html","id":null,"dir":"Reference","previous_headings":"","what":"Search in data frame column if search term is not NULL — search_in_if_args","title":"Search in data frame column if search term is not NULL — search_in_if_args","text":"Search data frame column search term NULL","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in_if_args.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Search in data frame column if search term is not NULL — search_in_if_args","text":"","code":"search_in_if_args(df, dfcol, search, args = NULL, multiple = FALSE)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in_if_args.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Search in data frame column if search term is not NULL — search_in_if_args","text":"df dfcol specifying column search search specifying search term args vector argument options; default NULL multiple indicating multiple search args allowed; default FALSE","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in_if_args.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Search in data frame column if search term is not NULL — search_in_if_args","text":" ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in_if_args.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Search in data frame column if search term is not NULL — search_in_if_args","text":"","code":"x <- dplyr::tibble(y = 1:10, z = letters[1:10]) search_in_if_args(df = x, dfcol = x$z, search = c(\"a\", \"j\")) #> # A tibble: 2 × 2 #> y z #> #> 1 1 a #> 2 10 j search_in_if_args(df = x, dfcol = x$z, search = NULL) #> # A tibble: 10 × 2 #> y z #> #> 1 1 a #> 2 2 b #> 3 3 c #> 4 4 d #> 5 5 e #> 6 6 f #> 7 7 g #> 8 8 h #> 9 9 i #> 10 10 j search_in_if_args(df = x, dfcol = x$z, search = c(\"a\", \"j\"), args = c(\"a\", \"j\"), multiple = TRUE) #> # A tibble: 2 × 2 #> y z #> #> 1 1 a #> 2 10 j try(search_in_if_args(df = x, dfcol = x$z, search = c(\"a\", \"j\"), args = c(\"a\", \"z\"), multiple = FALSE)) #> Error in search_in_if_args(df = x, dfcol = x$z, search = c(\"a\", \"j\"), : #> `search` must be one of \"a\" or \"z\", not \"a\"."},{"path":"https://andrewallenbruce.github.io/fuimus/reference/show_missing.html","id":null,"dir":"Reference","previous_headings":"","what":"Show missing values — show_missing","title":"Show missing values — show_missing","text":"Show missing values","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/show_missing.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Show missing values — show_missing","text":"","code":"show_missing(df, group_vars, summary_vars = dplyr::everything())"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/show_missing.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Show missing values — show_missing","text":"df group_vars vector variables group summary_vars vector variables summarize; default dplyr::everything()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/show_missing.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Show missing values — show_missing","text":"","code":"dplyr::tibble(x = 1:10, y = 1:10, z = c(letters[1:10])) |> show_missing(z) #> # A tibble: 10 × 1 #> z #> #> 1 a #> 2 b #> 3 c #> 4 d #> 5 e #> 6 f #> 7 g #> 8 h #> 9 i #> 10 j"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/single_line_string.html","id":null,"dir":"Reference","previous_headings":"","what":"Format multiple line character vector to single line — single_line_string","title":"Format multiple line character vector to single line — single_line_string","text":"Format multiple line character vector single line","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/single_line_string.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Format multiple line character vector to single line — single_line_string","text":"","code":"single_line_string(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/single_line_string.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Format multiple line character vector to single line — single_line_string","text":"x character vector line breaks (\\n)","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/single_line_string.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Format multiple line character vector to single line — single_line_string","text":" single line character vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/single_line_string.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Format multiple line character vector to single line — single_line_string","text":"","code":"single_line_string( \"(Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?| Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|\") #> [1] \"(Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sorted_bars.html","id":null,"dir":"Reference","previous_headings":"","what":"Sorted Bar Chart — sorted_bars","title":"Sorted Bar Chart — sorted_bars","text":"Sorted Bar Chart","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sorted_bars.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Sorted Bar Chart — sorted_bars","text":"","code":"sorted_bars(df, var)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sorted_bars.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Sorted Bar Chart — sorted_bars","text":"df data frame var column plot","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sorted_bars.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Sorted Bar Chart — sorted_bars","text":"ggplot2 object","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sorted_bars.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Sorted Bar Chart — sorted_bars","text":"","code":"ggplot2::diamonds |> sorted_bars(cut) + gg_theme()"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/splitter.html","id":null,"dir":"Reference","previous_headings":"","what":"Wrapper for strsplit() that unlists and unnames results — splitter","title":"Wrapper for strsplit() that unlists and unnames results — splitter","text":"Wrapper strsplit() unlists unnames results","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/splitter.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Wrapper for strsplit() that unlists and unnames results — splitter","text":"","code":"splitter(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/splitter.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Wrapper for strsplit() that unlists and unnames results — splitter","text":"x string named strings","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/splitter.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Wrapper for strsplit() that unlists and unnames results — splitter","text":"unnamed split vectors","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/splitter.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Wrapper for strsplit() that unlists and unnames results — splitter","text":"","code":"# unnamed vector splitter(\"XYZ\") #> [1] \"X\" \"Y\" \"Z\" # named vector splitter(c(x = \"XYZ\")) #> [1] \"X\" \"Y\" \"Z\" # unnamed list with one element splitter(list(\"XYZ\")) #> [1] \"X\" \"Y\" \"Z\" # unnamed list with multiple elements splitter(list(\"YYY\", \"ZZZ\")) #> [[1]] #> [1] \"Y\" \"Y\" \"Y\" #> #> [[2]] #> [1] \"Z\" \"Z\" \"Z\" #> # named list with one element splitter(list(x = \"XYZ\")) #> [1] \"X\" \"Y\" \"Z\" # named list with multiple elements splitter(list(x = \"YYY\", xx = \"ZZZ\")) #> [[1]] #> [1] \"Y\" \"Y\" \"Y\" #> #> [[2]] #> [1] \"Z\" \"Z\" \"Z\" #>"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/srchcol.html","id":null,"dir":"Reference","previous_headings":"","what":"Search a data frame column by string — srchcol","title":"Search a data frame column by string — srchcol","text":"Search data frame column string","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/srchcol.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Search a data frame column by string — srchcol","text":"","code":"srchcol(df, col, search, ignore = TRUE, ...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/srchcol.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Search a data frame column by string — srchcol","text":"df col column name string unquoted search string search , can regular expression, e.g. '^[-Z]' ignore ignore case, default TRUE ... additional arguments","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/srchcol.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Search a data frame column by string — srchcol","text":" ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/srchcol.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Search a data frame column by string — srchcol","text":"","code":"x <- dplyr::tibble(y = 1:10, z = letters[1:10]) srchcol(df = x, col = \"z\", search = \"[a|j]\") #> # A tibble: 2 × 2 #> y z #> #> 1 1 a #> 2 10 j"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sum_na.html","id":null,"dir":"Reference","previous_headings":"","what":"sum() with NA removal — sum_na","title":"sum() with NA removal — sum_na","text":"sum() NA removal","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sum_na.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"sum() with NA removal — sum_na","text":"","code":"sum_na(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sum_na.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"sum() with NA removal — sum_na","text":"x vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sum_na.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"sum() with NA removal — sum_na","text":"","code":"sum_na(c(1, 2, NA)) #> [1] 3"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/upgrade_personal_pkgs.html","id":null,"dir":"Reference","previous_headings":"","what":"Install/upgrade personal packages — upgrade_personal_pkgs","title":"Install/upgrade personal packages — upgrade_personal_pkgs","text":"Install/upgrade personal packages","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/upgrade_personal_pkgs.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Install/upgrade personal packages — upgrade_personal_pkgs","text":"","code":"upgrade_personal_pkgs()"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/var_na.html","id":null,"dir":"Reference","previous_headings":"","what":"var() with NA removal — var_na","title":"var() with NA removal — var_na","text":"var() NA removal","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/var_na.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"var() with NA removal — var_na","text":"","code":"var_na(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/var_na.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"var() with NA removal — var_na","text":"x vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/var_na.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"var() with NA removal — var_na","text":"","code":"var_na(c(1, 2, NA)) #> [1] 0.5"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_df.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate the number of years between two dates — years_df","title":"Calculate the number of years between two dates — years_df","text":"Calculate number years two dates","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_df.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate the number of years between two dates — years_df","text":"","code":"years_df(df, from, to)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_df.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate the number of years between two dates — years_df","text":"df Start date column End date column","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_df.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Calculate the number of years between two dates — years_df","text":" ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_df.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate the number of years between two dates — years_df","text":"","code":"dplyr::tibble( from = as.Date(\"2020-01-01\"), to = as.Date(\"2020-01-01\") + 2057) |> years_df(from, to) #> # A tibble: 1 × 3 #> from to years_passed #> #> 1 2020-01-01 2025-08-19 5.63"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_floor.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate the number of years between two dates rounded down to the nearest whole number — years_floor","title":"Calculate the number of years between two dates rounded down to the nearest whole number — years_floor","text":"Calculate number years two dates rounded nearest whole number","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_floor.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate the number of years between two dates rounded down to the nearest whole number — years_floor","text":"","code":"years_floor(from, to)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_floor.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate the number of years between two dates rounded down to the nearest whole number — years_floor","text":" Start date End date","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_floor.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Calculate the number of years between two dates rounded down to the nearest whole number — years_floor","text":" vector number years two dates rounded nearest whole number","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_floor.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate the number of years between two dates rounded down to the nearest whole number — years_floor","text":"","code":"years_floor( from = as.Date(\"2020-01-01\"), to = as.Date(\"2020-01-01\") + 2057) #> [1] 5"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_vec.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate the number of years between two dates — years_vec","title":"Calculate the number of years between two dates — years_vec","text":"Calculate number years two dates","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_vec.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate the number of years between two dates — years_vec","text":"","code":"years_vec(from, to)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_vec.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate the number of years between two dates — years_vec","text":" Start date End date","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_vec.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Calculate the number of years between two dates — years_vec","text":" vector number years two dates","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_vec.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate the number of years between two dates — years_vec","text":"","code":"years_vec( from = as.Date(\"2020-01-01\"), to = as.Date(\"2020-01-01\") + 2057) #> [1] 5.63"},{"path":[]},{"path":"https://andrewallenbruce.github.io/fuimus/news/index.html","id":"fuimus-001","dir":"Changelog","previous_headings":"","what":"fuimus 0.0.1","title":"fuimus 0.0.1","text":"Initial commit.","code":""}] +[{"path":[]},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"our-pledge","dir":"","previous_headings":"","what":"Our Pledge","title":"Contributor Covenant Code of Conduct","text":"members, contributors, leaders pledge make participation community harassment-free experience everyone, regardless age, body size, visible invisible disability, ethnicity, sex characteristics, gender identity expression, level experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, sexual identity orientation. pledge act interact ways contribute open, welcoming, diverse, inclusive, healthy community.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"our-standards","dir":"","previous_headings":"","what":"Our Standards","title":"Contributor Covenant Code of Conduct","text":"Examples behavior contributes positive environment community include: Demonstrating empathy kindness toward people respectful differing opinions, viewpoints, experiences Giving gracefully accepting constructive feedback Accepting responsibility apologizing affected mistakes, learning experience Focusing best just us individuals, overall community Examples unacceptable behavior include: use sexualized language imagery, sexual attention advances kind Trolling, insulting derogatory comments, personal political attacks Public private harassment Publishing others’ private information, physical email address, without explicit permission conduct reasonably considered inappropriate professional setting","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"enforcement-responsibilities","dir":"","previous_headings":"","what":"Enforcement Responsibilities","title":"Contributor Covenant Code of Conduct","text":"Community leaders responsible clarifying enforcing standards acceptable behavior take appropriate fair corrective action response behavior deem inappropriate, threatening, offensive, harmful. Community leaders right responsibility remove, edit, reject comments, commits, code, wiki edits, issues, contributions aligned Code Conduct, communicate reasons moderation decisions appropriate.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"scope","dir":"","previous_headings":"","what":"Scope","title":"Contributor Covenant Code of Conduct","text":"Code Conduct applies within community spaces, also applies individual officially representing community public spaces. Examples representing community include using official e-mail address, posting via official social media account, acting appointed representative online offline event.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"enforcement","dir":"","previous_headings":"","what":"Enforcement","title":"Contributor Covenant Code of Conduct","text":"Instances abusive, harassing, otherwise unacceptable behavior may reported community leaders responsible enforcement andrew.bruce@northstarrevenueintegrity.com. complaints reviewed investigated promptly fairly. community leaders obligated respect privacy security reporter incident.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"enforcement-guidelines","dir":"","previous_headings":"","what":"Enforcement Guidelines","title":"Contributor Covenant Code of Conduct","text":"Community leaders follow Community Impact Guidelines determining consequences action deem violation Code Conduct:","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"id_1-correction","dir":"","previous_headings":"Enforcement Guidelines","what":"1. Correction","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Use inappropriate language behavior deemed unprofessional unwelcome community. Consequence: private, written warning community leaders, providing clarity around nature violation explanation behavior inappropriate. public apology may requested.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"id_2-warning","dir":"","previous_headings":"Enforcement Guidelines","what":"2. Warning","title":"Contributor Covenant Code of Conduct","text":"Community Impact: violation single incident series actions. Consequence: warning consequences continued behavior. interaction people involved, including unsolicited interaction enforcing Code Conduct, specified period time. includes avoiding interactions community spaces well external channels like social media. Violating terms may lead temporary permanent ban.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"id_3-temporary-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"3. Temporary Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: serious violation community standards, including sustained inappropriate behavior. Consequence: temporary ban sort interaction public communication community specified period time. public private interaction people involved, including unsolicited interaction enforcing Code Conduct, allowed period. Violating terms may lead permanent ban.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"id_4-permanent-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"4. Permanent Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Demonstrating pattern violation community standards, including sustained inappropriate behavior, harassment individual, aggression toward disparagement classes individuals. Consequence: permanent ban sort public interaction within community.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/CODE_OF_CONDUCT.html","id":"attribution","dir":"","previous_headings":"","what":"Attribution","title":"Contributor Covenant Code of Conduct","text":"Code Conduct adapted Contributor Covenant, version 2.1, available https://www.contributor-covenant.org/version/2/1/code_of_conduct.html. Community Impact Guidelines inspired [Mozilla’s code conduct enforcement ladder][https://github.com/mozilla/inclusion]. answers common questions code conduct, see FAQ https://www.contributor-covenant.org/faq. Translations available https://www.contributor-covenant.org/translations.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2024 fuimus authors Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Andrew Bruce. Author, maintainer, copyright holder.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Bruce (2024). fuimus: Functions . R package version 0.0.2, https://github.com/andrewallenbruce/fuimus, https://andrewallenbruce.github.io/fuimus/.","code":"@Manual{, title = {fuimus: Functions That Have Been}, author = {Andrew Bruce}, year = {2024}, note = {R package version 0.0.2, https://github.com/andrewallenbruce/fuimus}, url = {https://andrewallenbruce.github.io/fuimus/}, }"},{"path":"https://andrewallenbruce.github.io/fuimus/index.html","id":"fuimus-","dir":"","previous_headings":"","what":"Functions That Have Been","title":"Functions That Have Been","text":"/ˈfu..mus/, [ˈfuɪmʊs̠] Literally, ‘’ Latin. Often interpreted ‘endured’ ‘always ’, proclaiming long history user. family motto Lowlands Scottish Clan Bruce).","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/index.html","id":"package-installation","dir":"","previous_headings":"","what":"📦 Installation","title":"Functions That Have Been","text":"can install fuimus GitHub :","code":"# install.packages(\"pak\") pak::pak(\"andrewallenbruce/fuimus\")"},{"path":"https://andrewallenbruce.github.io/fuimus/index.html","id":"balance_scale-code-of-conduct","dir":"","previous_headings":"","what":"⚖️ Code of Conduct","title":"Functions That Have Been","text":"Please note fuimus project released Contributor Code Conduct. contributing project, agree abide terms.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/index.html","id":"classical_building-governance","dir":"","previous_headings":"","what":"🏛️ Governance","title":"Functions That Have Been","text":"project primarily maintained Andrew Bruce. authors may occasionally assist duties.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/add_ifelse.html","id":null,"dir":"Reference","previous_headings":"","what":"Search in data frame column if search term is not NULL — add_ifelse","title":"Search in data frame column if search term is not NULL — add_ifelse","text":"Search data frame column search term NULL","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/add_ifelse.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Search in data frame column if search term is not NULL — add_ifelse","text":"","code":"add_ifelse(x, df, dfcol, by)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/add_ifelse.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Search in data frame column if search term is not NULL — add_ifelse","text":"x specifying search term df dfcol specifying column search specifying column nest ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/add_ifelse.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Search in data frame column if search term is not NULL — add_ifelse","text":" ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/add_ifelse.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Search in data frame column if search term is not NULL — add_ifelse","text":"","code":"if (FALSE) { add_ifelse(x = \"Practitioner\", df = df, dfcol = df$mue_service_type, by = mue_service_type) }"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/age_days.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate Number of Days Between Two Dates — age_days","title":"Calculate Number of Days Between Two Dates — age_days","text":"Calculate Number Days Two Dates","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/age_days.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate Number of Days Between Two Dates — age_days","text":"","code":"age_days(df, start, end, colname = \"age\")"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/age_days.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate Number of Days Between Two Dates — age_days","text":"df containing date columns start column containing date(s) prior end_date column end column containing date(s) start_date column colname desired column name output; default \"age\"","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/age_days.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Calculate Number of Days Between Two Dates — age_days","text":"tibble named column containing calculated number days.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/age_days.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Calculate Number of Days Between Two Dates — age_days","text":"calculation includes end date sum (see example)","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/age_days.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate Number of Days Between Two Dates — age_days","text":"","code":"date_ex <- dplyr::tibble( x = seq.Date( as.Date(\"2021-01-01\"), by = \"month\", length.out = 3), y = seq.Date( as.Date(\"2022-01-01\"), by = \"month\", length.out = 3 ) ) age_days(df = date_ex, start = x, end = y) #> # A tibble: 3 × 3 #> x y age #> #> 1 2021-01-01 2022-01-01 366 #> 2 2021-02-01 2022-02-01 366 #> 3 2021-03-01 2022-03-01 366 date_ex |> age_days(x, y, \"days_between_x_y\") #> # A tibble: 3 × 3 #> x y days_between_x_y #> #> 1 2021-01-01 2022-01-01 366 #> 2 2021-02-01 2022-02-01 366 #> 3 2021-03-01 2022-03-01 366 date_ex |> age_days(start = x, end = lubridate::today(), colname = \"days_since_x\") #> # A tibble: 3 × 3 #> x y days_since_x #> #> 1 2021-01-01 2022-01-01 1319 #> 2 2021-02-01 2022-02-01 1288 #> 3 2021-03-01 2022-03-01 1260 date_ex |> age_days(x, y, \"days_between_x_y\") |> age_days(x, lubridate::today(), \"days_since_x\") |> age_days(y, lubridate::today(), colname = \"days_since_y\") #> # A tibble: 3 × 5 #> x y days_between_x_y days_since_x days_since_y #> #> 1 2021-01-01 2022-01-01 366 1319 954 #> 2 2021-02-01 2022-02-01 366 1288 923 #> 3 2021-03-01 2022-03-01 366 1260 895"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/change.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate Lagged Metrics — change","title":"Calculate Lagged Metrics — change","text":"Calculate Lagged Metrics","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/change.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate Lagged Metrics — change","text":"","code":"change(df, cols, csm = NULL)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/change.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate Lagged Metrics — change","text":"df data frame cols numeric columns calculate absolute/relative change & rate return csm numeric cols calculate cumulative sum ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/change.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate Lagged Metrics — change","text":"","code":"fuimus:::provider_data(2020:2025) |> dplyr::group_by(group) |> change(net_payment, csm = c(\"payment\", \"_chg\")) #> # A tibble: 12 × 8 #> year group net_payment net_payment_chg net_payment_pct net_payment_ror #> #> 1 2020 A 15292 0 0 1 #> 2 2021 A 15526 234 0.0153 1.02 #> 3 2022 A 16603 1077 0.0694 1.07 #> 4 2023 A 10484 -6119 -0.369 0.631 #> 5 2024 A 12606 2122 0.202 1.20 #> 6 2025 A 11475 -1131 -0.0897 0.910 #> 7 2020 B 18165 0 0 1 #> 8 2021 B 12244 -5921 -0.326 0.674 #> 9 2022 B 14612 2368 0.193 1.19 #> 10 2023 B 19982 5370 0.368 1.37 #> 11 2024 B 14172 -5810 -0.291 0.709 #> 12 2025 B 19089 4917 0.347 1.35 #> # ℹ 2 more variables: net_payment_csm , net_payment_chg_csm "},{"path":"https://andrewallenbruce.github.io/fuimus/reference/change_lagged.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate lagged values by column — change_lagged","title":"Calculate lagged values by column — change_lagged","text":"Calculate lagged values column","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/change_lagged.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate lagged values by column — change_lagged","text":"","code":"change_lagged(df, col, by = NULL)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/change_lagged.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate lagged values by column — change_lagged","text":"df data frame col column numeric values calculate lag column calculate lag ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/change_lagged.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate lagged values by column — change_lagged","text":"","code":"fuimus:::provider_data(2020:2025) |> dplyr::group_by(group) |> change_lagged(net_payment, year) #> # A tibble: 12 × 5 #> # Groups: group [2] #> year group net_payment net_payment_chg net_payment_pct #> #> 1 2020 A 12614 NA NA #> 2 2021 A 13371 757 0.0600 #> 3 2022 A 11980 -1391 -0.104 #> 4 2023 A 12046 66 0.00551 #> 5 2024 A 13331 1285 0.107 #> 6 2025 A 18943 5612 0.421 #> 7 2020 B 19285 NA NA #> 8 2021 B 16293 -2992 -0.155 #> 9 2022 B 11022 -5271 -0.324 #> 10 2023 B 11289 267 0.0242 #> 11 2024 B 19121 7832 0.694 #> 12 2025 B 14275 -4846 -0.253"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/check_chars_numeric.html","id":null,"dir":"Reference","previous_headings":"","what":"Check that x contains numbers only — check_chars_numeric","title":"Check that x contains numbers only — check_chars_numeric","text":"Check x contains numbers ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/check_chars_numeric.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Check that x contains numbers only — check_chars_numeric","text":"","code":"check_chars_numeric(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/check_chars_numeric.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Check that x contains numbers only — check_chars_numeric","text":"x vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/check_first_char.html","id":null,"dir":"Reference","previous_headings":"","what":"Check that x begin with 1 or 2 — check_first_char","title":"Check that x begin with 1 or 2 — check_first_char","text":"Check x begin 1 2","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/check_first_char.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Check that x begin with 1 or 2 — check_first_char","text":"","code":"check_first_char(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/check_first_char.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Check that x begin with 1 or 2 — check_first_char","text":"x vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/check_length.html","id":null,"dir":"Reference","previous_headings":"","what":"Check length of x is 1 — check_length","title":"Check length of x is 1 — check_length","text":"Check length x 1","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/check_length.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Check length of x is 1 — check_length","text":"","code":"check_length(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/check_length.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Check length of x is 1 — check_length","text":"x vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/check_nchars_10.html","id":null,"dir":"Reference","previous_headings":"","what":"Check that x is 10 characters long — check_nchars_10","title":"Check that x is 10 characters long — check_nchars_10","text":"Check x 10 characters long","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/check_nchars_10.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Check that x is 10 characters long — check_nchars_10","text":"","code":"check_nchars_10(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/check_nchars_10.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Check that x is 10 characters long — check_nchars_10","text":"x vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/chg_abs.html","id":null,"dir":"Reference","previous_headings":"","what":"Lagged absolute change — chg_abs","title":"Lagged absolute change — chg_abs","text":"Lagged absolute change","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/chg_abs.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Lagged absolute change — chg_abs","text":"","code":"chg_abs(x, n = 1L, fill_na = 0L)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/chg_abs.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Lagged absolute change — chg_abs","text":"x numeric vector n values offset fill_na fill value NAs; default 0","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/chg_abs.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Lagged absolute change — chg_abs","text":"","code":"fuimus:::provider_data(2020:2025) |> dplyr::mutate(change = chg_abs(net_payment), .by = group) #> # A tibble: 12 × 4 #> year group net_payment change #> #> 1 2020 A 12069 0 #> 2 2021 A 11920 -149 #> 3 2022 A 14274 2354 #> 4 2023 A 16829 2555 #> 5 2024 A 14928 -1901 #> 6 2025 A 11560 -3368 #> 7 2020 B 14590 0 #> 8 2021 B 15617 1027 #> 9 2022 B 16308 691 #> 10 2023 B 12783 -3525 #> 11 2024 B 12923 140 #> 12 2025 B 11874 -1049"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/chg_pct.html","id":null,"dir":"Reference","previous_headings":"","what":"Lagged percentage change — chg_pct","title":"Lagged percentage change — chg_pct","text":"Lagged percentage change","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/chg_pct.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Lagged percentage change — chg_pct","text":"","code":"chg_pct(x, n = 1L, fill_na = 0L)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/chg_pct.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Lagged percentage change — chg_pct","text":"x numeric vector n values offset fill_na fill value NAs; default 0","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/chg_pct.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Lagged percentage change — chg_pct","text":"","code":"fuimus:::provider_data(2020:2025) |> dplyr::mutate(change = chg_pct(net_payment), .by = group) #> # A tibble: 12 × 4 #> year group net_payment change #> #> 1 2020 A 17963 0 #> 2 2021 A 11839 -0.341 #> 3 2022 A 19177 0.620 #> 4 2023 A 11314 -0.410 #> 5 2024 A 18321 0.619 #> 6 2025 A 13926 -0.240 #> 7 2020 B 17017 0 #> 8 2021 B 18834 0.107 #> 9 2022 B 11829 -0.372 #> 10 2023 B 16595 0.403 #> 11 2024 B 10745 -0.353 #> 12 2025 B 12624 0.175"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/clean_number.html","id":null,"dir":"Reference","previous_headings":"","what":"Clean character vector of numbers — clean_number","title":"Clean character vector of numbers — clean_number","text":"Clean character vector numbers","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/clean_number.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Clean character vector of numbers — clean_number","text":"","code":"clean_number(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/clean_number.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Clean character vector of numbers — clean_number","text":"x vector numbers","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/clean_number.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Clean character vector of numbers — clean_number","text":" vector numbers","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/clean_number.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Clean character vector of numbers — clean_number","text":"","code":"clean_number(c(\"20%\", \"21,125,458\", \"$123\")) #> [1] 0.2 21125458.0 123.0"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/collapser.html","id":null,"dir":"Reference","previous_headings":"","what":"Wrapper for paste0() that collapses result — collapser","title":"Wrapper for paste0() that collapses result — collapser","text":"Wrapper paste0() collapses result","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/collapser.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Wrapper for paste0() that collapses result — collapser","text":"","code":"collapser(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/collapser.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Wrapper for paste0() that collapses result — collapser","text":"x split vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/collapser.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Wrapper for paste0() that collapses result — collapser","text":"collapsed string","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/collapser.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Wrapper for paste0() that collapses result — collapser","text":"","code":"collapser(c(\"X\", \"Y\", \"Z\")) #> [1] \"XYZ\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/color_text.html","id":null,"dir":"Reference","previous_headings":"","what":"Color text using HTML color styling — color_text","title":"Color text using HTML color styling — color_text","text":"Useful conjuction ggtext glue","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/color_text.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Color text using HTML color styling — color_text","text":"","code":"color_text(text, hex_code)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/color_text.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Color text using HTML color styling — color_text","text":"text string text hex_code string, color hex code","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/color_text.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Color text using HTML color styling — color_text","text":" string","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/color_text.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Color text using HTML color styling — color_text","text":"","code":"color_text(\"Hello there!\", \"#BD43BF\") #> [1] \"Hello there!<\/span>\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/combine.html","id":null,"dir":"Reference","previous_headings":"","what":"Combine multiple columns into one — combine","title":"Combine multiple columns into one — combine","text":"Combine multiple columns one","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/combine.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Combine multiple columns into one — combine","text":"","code":"combine(df, name = combined, columns, sep = \"-\")"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/combine.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Combine multiple columns into one — combine","text":"df name new column name, unquoted, default combined columns vector columns combine sep separator combined row data, default \"-\"","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/combine.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Combine multiple columns into one — combine","text":" combined columns","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/combine.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Combine multiple columns into one — combine","text":"","code":"fuimus:::forager_data()[-5] |> combine(name = id_payer, columns = c('claim_id', 'payer')) #> # A tibble: 10 × 3 #> id_payer ins_class balance #> #> 1 01-BCBS Secondary 100. #> 2 02-Humana Secondary 171. #> 3 03-Anthem Secondary 130. #> 4 04-Medicare Primary 114. #> 5 05-Medicaid Primary 247. #> 6 06-Medicaid Primary 52.2 #> 7 07-Anthem Secondary 27.0 #> 8 08-BCBS Primary 137. #> 9 09-Humana Primary 254. #> 10 10-Medicaid Primary 117."},{"path":"https://andrewallenbruce.github.io/fuimus/reference/construct_regex.html","id":null,"dir":"Reference","previous_headings":"","what":"Construct regex patterns — construct_regex","title":"Construct regex patterns — construct_regex","text":"Construct regex patterns","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/construct_regex.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Construct regex patterns — construct_regex","text":"","code":"construct_regex(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/construct_regex.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Construct regex patterns — construct_regex","text":"x vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/construct_regex.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Construct regex patterns — construct_regex","text":" regex vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/construct_regex.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Construct regex patterns — construct_regex","text":"","code":"# construct_regex(search_descriptions()$hcpcs_code) # construct_regex(search_adjustments()$adj_code) # Incorrect output: \"^[A-DM-PWY1-9][AIOR0-9]?[0-9]?{3}$\" #> [1] \"^[A-DM-PWY1-9][AIOR0-9]?[0-9]?{3}$\" # Digits at the end should be: \"^[A-DM-PWY1-9][AIOR0-9]?[0-9]{0,3}?$\" #> [1] \"^[A-DM-PWY1-9][AIOR0-9]?[0-9]{0,3}?$\" # Test adj codes adj <- c(\"4\", \"CO\", \"P6\", \"100\", \"B19\", \"MA22\", \"MA124\", \"N766\") construct_regex(adj) #> [1] \"^[BCMNP14][AO0167]?[0-269]?[26]?[4]?$\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_days.html","id":null,"dir":"Reference","previous_headings":"","what":"Count days between two dates — count_days","title":"Count days between two dates — count_days","text":"Count days two dates","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_days.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Count days between two dates — count_days","text":"","code":"count_days(df, start, end, name)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_days.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Count days between two dates — count_days","text":"df start bare date column name end bare date column name name bare name days output column","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_days.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Count days between two dates — count_days","text":" ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_days.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Count days between two dates — count_days","text":"","code":"dplyr::tibble(dos = as.Date(c(\"2021-04-18\", \"2021-11-18\", \"2022-02-18\")), signed = as.Date(\"2022-02-18\")) |> count_days( start = dos, end = signed, lag) #> # A tibble: 3 × 3 #> dos signed lag #> #> 1 2021-04-18 2022-02-18 306 #> 2 2021-11-18 2022-02-18 92 #> 3 2022-02-18 2022-02-18 0"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_missing.html","id":null,"dir":"Reference","previous_headings":"","what":"Count missing values — count_missing","title":"Count missing values — count_missing","text":"Count missing values","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_missing.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Count missing values — count_missing","text":"","code":"count_missing(df, group_vars, x_var)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_missing.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Count missing values — count_missing","text":"df group_vars vector variables group x_var vector variable count missing values ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_missing.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Count missing values — count_missing","text":" count missing values","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_missing.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Count missing values — count_missing","text":"","code":"dplyr::tibble(x = 1:10, y = 1:10, z = letters[1:10]) |> count_missing(z, x) #> # A tibble: 10 × 2 #> z n_miss #> #> 1 a 0 #> 2 b 0 #> 3 c 0 #> 4 d 0 #> 5 e 0 #> 6 f 0 #> 7 g 0 #> 8 h 0 #> 9 i 0 #> 10 j 0"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_prop.html","id":null,"dir":"Reference","previous_headings":"","what":"Count and calculate proportion of each group — count_prop","title":"Count and calculate proportion of each group — count_prop","text":"Count calculate proportion group","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_prop.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Count and calculate proportion of each group — count_prop","text":"","code":"count_prop(df, var, sort = FALSE, na.rm = FALSE)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_prop.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Count and calculate proportion of each group — count_prop","text":"df var specifying column count sort indicating whether sort output frequency, default FALSE na.rm indicating whether remove missing values count, default FALSE","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_prop.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Count and calculate proportion of each group — count_prop","text":"","code":"fuimus:::forager_data() |> count_prop(payer, sort = TRUE) #> # A tibble: 5 × 3 #> payer n prop #> #> 1 BCBS 3 0.3 #> 2 Cigna 3 0.3 #> 3 Humana 2 0.2 #> 4 Anthem 1 0.1 #> 5 Centene 1 0.1"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_prop_multi.html","id":null,"dir":"Reference","previous_headings":"","what":"Count and calculate proportion of each group — count_prop_multi","title":"Count and calculate proportion of each group — count_prop_multi","text":"Count calculate proportion group","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_prop_multi.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Count and calculate proportion of each group — count_prop_multi","text":"","code":"count_prop_multi(df, rows, cols, sort = FALSE, na.rm = FALSE)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_prop_multi.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Count and calculate proportion of each group — count_prop_multi","text":"df rows specifying rows count cols specifying columns count sort indicating whether sort output frequency, default FALSE na.rm indicating whether remove missing values count, default FALSE","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_prop_multi.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Count and calculate proportion of each group — count_prop_multi","text":"","code":"fuimus:::forager_data(10) |> count_prop_multi( c(ins_class), payer, sort = TRUE) #> # A tibble: 8 × 4 #> ins_class payer n prop #> #> 1 Primary Anthem 2 0.2 #> 2 Primary UnitedHealth 2 0.2 #> 3 Primary BCBS 1 0.1 #> 4 Primary Medicaid 1 0.1 #> 5 Secondary Centene 1 0.1 #> 6 Secondary Cigna 1 0.1 #> 7 Secondary Medicaid 1 0.1 #> 8 Secondary Medicare 1 0.1"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_wide.html","id":null,"dir":"Reference","previous_headings":"","what":"Count rows and columns and pivot to wide format — count_wide","title":"Count rows and columns and pivot to wide format — count_wide","text":"Count rows columns pivot wide format","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_wide.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Count rows and columns and pivot to wide format — count_wide","text":"","code":"count_wide(df, rows, cols)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_wide.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Count rows and columns and pivot to wide format — count_wide","text":"df rows specifying rows count cols specifying columns count","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/count_wide.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Count rows and columns and pivot to wide format — count_wide","text":"","code":"fuimus:::forager_data(10) |> count_wide( c(ins_class), payer) #> # A tibble: 2 × 7 #> ins_class Anthem BCBS Centene Cigna Medicaid UnitedHealth #> #> 1 Primary 1 1 2 1 1 1 #> 2 Secondary 1 1 1 0 0 0"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/create_vec.html","id":null,"dir":"Reference","previous_headings":"","what":"Generate code from a vector of values — create_vec","title":"Generate code from a vector of values — create_vec","text":"Generate code vector values","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/create_vec.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Generate code from a vector of values — create_vec","text":"","code":"create_vec(x, collapse = \", \", enclose = c(\"x = c(\", \")\"), style = TRUE, ...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/create_vec.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Generate code from a vector of values — create_vec","text":"x vector collapse Separator sequences, default \", \" enclose (optional) Vector length(x) == 2 enclose output style Apply styler::style_text() output, default TRUE ... Additional arguments passed styler::tidyverse_style()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/create_vec.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Generate code from a vector of values — create_vec","text":" vector valid R code","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/create_vec.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Generate code from a vector of values — create_vec","text":"","code":"hcpcs <- c( \"63091\", \"81536\", \"99305\", \"63012\", \"78835\", \"E0185\", \"44408\", \"87485\", \"36015\", \"0581F\", \"33478\", \"21184\", \"42999\", \"15155\", \"76705\", \"23412\", \"99406\", \"0585T\", \"0272T\", \"92507\") create_vec(x = hcpcs) #> x <- c(\"63091\", \"81536\", \"99305\", \"63012\", \"78835\", \"E0185\", \"44408\", \"87485\", \"36015\", \"0581F\", \"33478\", \"21184\", \"42999\", \"15155\", \"76705\", \"23412\", \"99406\", \"0585T\", \"0272T\", \"92507\")"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/delister.html","id":null,"dir":"Reference","previous_headings":"","what":"Wrapper for unlist(), with use.names set to FALSE — delister","title":"Wrapper for unlist(), with use.names set to FALSE — delister","text":"Wrapper unlist(), use.names set FALSE","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/delister.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Wrapper for unlist(), with use.names set to FALSE — delister","text":"","code":"delister(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/delister.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Wrapper for unlist(), with use.names set to FALSE — delister","text":"x named ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/delister.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Wrapper for unlist(), with use.names set to FALSE — delister","text":"unnamed vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/delister.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Wrapper for unlist(), with use.names set to FALSE — delister","text":"","code":"delister(list(x = \"XYZ\")) #> [1] \"XYZ\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/density.html","id":null,"dir":"Reference","previous_headings":"","what":"Density plot — density","title":"Density plot — density","text":"Density plot","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/density.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Density plot — density","text":"","code":"density(df, var, color, facets, binwidth = 0.1)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/density.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Density plot — density","text":"df df var var color color var facets facets var binwidth binwidth","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/density.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Density plot — density","text":"ggplot2 density plot","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/density.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Density plot — density","text":"","code":"ggplot2::diamonds |> density(carat) ggplot2::diamonds |> density(carat, cut) ggplot2::diamonds |> density(carat, cut, clarity)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/describe.html","id":null,"dir":"Reference","previous_headings":"","what":"Describe a dataset — describe","title":"Describe a dataset — describe","text":"Describe dataset","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/describe.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Describe a dataset — describe","text":"","code":"describe(df, ...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/describe.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Describe a dataset — describe","text":"df desc ... tidyselect columns","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/describe.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Describe a dataset — describe","text":" summary statistics","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/describe.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Describe a dataset — describe","text":"","code":"describe(fuimus:::provider_data(2000:2020)) #> # A tibble: 3 × 13 #> variable type n amean gmean sd iqr median mad range hist #> #> 1 group 42 1 1 0 0 1 0 [1 -… ▁▁▇▁▁ #> 2 year 42 2010 2010. 6.13 10 2010 7.41 [200… ▇▆▆▆▆ #> 3 net_payment 42 14968. 14688. 2893. 5030. 14906. 3896. [101… ▅▇▃▆▇ #> # ℹ 2 more variables: n_uniq , top_5 describe( fuimus:::forager_data(200), !dplyr::starts_with(\"date\") ) #> # A tibble: 4 × 13 #> variable type n amean gmean sd iqr median mad range hist n_uniq #> #> 1 balance 200 125. 94.7 88.5 103. 111. 77.5 [3.5… ▇▆▂▁▁ 200 #> 2 claim_id 200 3 3 0 0 3 0 [3 -… ▁▁▇▁▁ 200 #> 3 payer 200 7.13 6.78 2.34 2 7 1.48 [4 -… ▅▇▅▁▃ 8 #> 4 ins_cla… 200 8.08 8.02 0.999 2 9 0 [7 -… ▇▁▁▁▇ 2 #> # ℹ 1 more variable: top_5 "},{"path":"https://andrewallenbruce.github.io/fuimus/reference/df_2_chr.html","id":null,"dir":"Reference","previous_headings":"","what":"Coerce numeric columns to character — df_2_chr","title":"Coerce numeric columns to character — df_2_chr","text":"Coerce numeric columns character","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/df_2_chr.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Coerce numeric columns to character — df_2_chr","text":"","code":"df_2_chr(df)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/df_2_chr.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Coerce numeric columns to character — df_2_chr","text":"df ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/df_2_chr.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Coerce numeric columns to character — df_2_chr","text":" numeric columns coerced character","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/df_2_chr.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Coerce numeric columns to character — df_2_chr","text":"","code":"df_2_chr(dplyr::tibble(x = 20:35)) #> # A tibble: 16 × 1 #> x #> #> 1 20 #> 2 21 #> 3 22 #> 4 23 #> 5 24 #> 6 25 #> 7 26 #> 8 27 #> 9 28 #> 10 29 #> 11 30 #> 12 31 #> 13 32 #> 14 33 #> 15 34 #> 16 35"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/display_long.html","id":null,"dir":"Reference","previous_headings":"","what":"Pivot data frame to long format for easy printing — display_long","title":"Pivot data frame to long format for easy printing — display_long","text":"Pivot data frame long format easy printing","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/display_long.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Pivot data frame to long format for easy printing — display_long","text":"","code":"display_long(df, cols = dplyr::everything())"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/display_long.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Pivot data frame to long format for easy printing — display_long","text":"df pivot long cols vector columns pivot long, default dplyr::everything()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/display_long.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Pivot data frame to long format for easy printing — display_long","text":" long format","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/display_long.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Pivot data frame to long format for easy printing — display_long","text":"","code":"x <- dplyr::tibble( a = 1:10, b = letters[1:10], c = 11:20, d = LETTERS[1:10], e = 21:30) display_long(x) #> # A tibble: 50 × 2 #> name value #> #> 1 a 1 #> 2 b a #> 3 c 11 #> 4 d A #> 5 e 21 #> 6 a 2 #> 7 b b #> 8 c 12 #> 9 d B #> 10 e 22 #> # ℹ 40 more rows"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/duration_vec.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate the duration between two dates — duration_vec","title":"Calculate the duration between two dates — duration_vec","text":"Calculate duration two dates","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/duration_vec.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate the duration between two dates — duration_vec","text":"","code":"duration_vec(from, to)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/duration_vec.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate the duration between two dates — duration_vec","text":" Start date End date","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/duration_vec.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Calculate the duration between two dates — duration_vec","text":" vector duration two dates","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/duration_vec.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate the duration between two dates — duration_vec","text":"","code":"duration_vec( from = lubridate::today() - 366, to = lubridate::today()) #> [1] \"31622400s (~1 years)\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/expand_date_range.html","id":null,"dir":"Reference","previous_headings":"","what":"Expand date range to include all dates — expand_date_range","title":"Expand date range to include all dates — expand_date_range","text":"Expand date range include dates","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/expand_date_range.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Expand date range to include all dates — expand_date_range","text":"","code":"expand_date_range(x, name)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/expand_date_range.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Expand date range to include all dates — expand_date_range","text":"x vector dates name new column name vector dates","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/expand_date_range.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Expand date range to include all dates — expand_date_range","text":" expanded date range","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/expand_date_range.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Expand date range to include all dates — expand_date_range","text":"","code":"expand_date_range( seq.Date( from = as.Date(\"2020-01-01\"), to = as.Date(\"2020-01-01\") + 2057, by = 1), \"date\" ) #> # A tibble: 2,058 × 10 #> date year quarter month month_l week day yday wday wday_l #> #> 1 2020-01-01 2020 1 1 Jan 1 1 0 3 Wed #> 2 2020-01-02 2020 1 1 Jan 1 2 1 4 Thu #> 3 2020-01-03 2020 1 1 Jan 1 3 2 5 Fri #> 4 2020-01-04 2020 1 1 Jan 1 4 3 6 Sat #> 5 2020-01-05 2020 1 1 Jan 1 5 4 7 Sun #> 6 2020-01-06 2020 1 1 Jan 1 6 5 1 Mon #> 7 2020-01-07 2020 1 1 Jan 1 7 6 2 Tue #> 8 2020-01-08 2020 1 1 Jan 2 8 7 3 Wed #> 9 2020-01-09 2020 1 1 Jan 2 9 8 4 Thu #> 10 2020-01-10 2020 1 1 Jan 2 10 9 5 Fri #> # ℹ 2,048 more rows"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/fancy_ts.html","id":null,"dir":"Reference","previous_headings":"","what":"Plots a fancy time series — fancy_ts","title":"Plots a fancy time series — fancy_ts","text":"Plots fancy time series","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/fancy_ts.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Plots a fancy time series — fancy_ts","text":"","code":"fancy_ts(df, val, group)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/fancy_ts.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Plots a fancy time series — fancy_ts","text":"df data.frame val value var group group var","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/fancy_ts.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Plots a fancy time series — fancy_ts","text":"tibble summarized data","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/fancy_ts.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Plots a fancy time series — fancy_ts","text":"","code":"df <- dplyr::tibble( dist1 = sort(rnorm(50, 5, 2)), dist2 = sort(rnorm(50, 8, 3)), dist4 = sort(rnorm(50, 15, 1)), date = seq.Date( as.Date(\"2022-01-01\"), as.Date(\"2022-04-10\"), by = \"2 days\") ) |> tidyr::pivot_longer( cols = -date, names_to = \"dist_name\", values_to = \"value\") df #> # A tibble: 150 × 3 #> date dist_name value #> #> 1 2022-01-01 dist1 1.67 #> 2 2022-01-01 dist2 -0.251 #> 3 2022-01-01 dist4 12.0 #> 4 2022-01-03 dist1 2.24 #> 5 2022-01-03 dist2 2.81 #> 6 2022-01-03 dist4 13.2 #> 7 2022-01-05 dist1 2.60 #> 8 2022-01-05 dist2 3.25 #> 9 2022-01-05 dist4 13.3 #> 10 2022-01-07 dist1 2.60 #> # ℹ 140 more rows fancy_ts(df, value, dist_name) + gg_theme()"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/geomean.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate Geometric Mean — geomean","title":"Calculate Geometric Mean — geomean","text":"Average rate_of_return()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/geomean.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate Geometric Mean — geomean","text":"","code":"geomean(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/geomean.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate Geometric Mean — geomean","text":"x numeric vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/geomean.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate Geometric Mean — geomean","text":"","code":"x <- fuimus:::provider_data(2020:2025) x |> dplyr::group_by(group) |> rate_of_return(net_payment) #> # A tibble: 12 × 4 #> year group net_payment net_payment_ror #> #> 1 2020 A 13632 1 #> 2 2021 A 19642 1.44 #> 3 2022 A 11209 0.571 #> 4 2023 A 16767 1.50 #> 5 2024 A 12592 0.751 #> 6 2025 A 11931 0.948 #> 7 2020 B 14636 1 #> 8 2021 B 13224 0.904 #> 9 2022 B 13017 0.984 #> 10 2023 B 17982 1.38 #> 11 2024 B 11889 0.661 #> 12 2025 B 19969 1.68 x |> dplyr::group_by(group) |> rate_of_return(net_payment) |> dplyr::summarise(gmean = geomean(net_payment_ror), .by = group) #> # A tibble: 2 × 2 #> group gmean #> #> 1 A 0.978 #> 2 B 1.05"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/get_pin.html","id":null,"dir":"Reference","previous_headings":"","what":"Get a pinned dataset from a pins board — get_pin","title":"Get a pinned dataset from a pins board — get_pin","text":"Get pinned dataset pins board","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/get_pin.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get a pinned dataset from a pins board — get_pin","text":"","code":"get_pin(pin, ...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/get_pin.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get a pinned dataset from a pins board — get_pin","text":"pin string name pinned dataset ... additional arguments passed mount_board()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/get_pin.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get a pinned dataset from a pins board — get_pin","text":" ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gg_theme.html","id":null,"dir":"Reference","previous_headings":"","what":"ggplot2 theme — gg_theme","title":"ggplot2 theme — gg_theme","text":"ggplot2 theme","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gg_theme.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ggplot2 theme — gg_theme","text":"","code":"gg_theme()"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gg_theme.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"ggplot2 theme — gg_theme","text":"ggplot theme","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gg_theme.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ggplot2 theme — gg_theme","text":"","code":"ggplot2::diamonds |> histogram(carat, 0.1) + gg_theme()"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gh_raw.html","id":null,"dir":"Reference","previous_headings":"","what":"Return GitHub raw url — gh_raw","title":"Return GitHub raw url — gh_raw","text":"Return GitHub raw url","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gh_raw.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Return GitHub raw url — gh_raw","text":"","code":"gh_raw(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gh_raw.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Return GitHub raw url — gh_raw","text":"x string","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gh_raw.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Return GitHub raw url — gh_raw","text":" GitHub raw url","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gh_raw.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Return GitHub raw url — gh_raw","text":"","code":"gh_raw(\"andrewbruce/example/main/inst/pins/\") #> [1] \"https://raw.githubusercontent.com/andrewbruce/example/main/inst/pins/\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/glue_chr.html","id":null,"dir":"Reference","previous_headings":"","what":"Apply as.character() to glue() — glue_chr","title":"Apply as.character() to glue() — glue_chr","text":"Apply .character() glue()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/glue_chr.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Apply as.character() to glue() — glue_chr","text":"","code":"glue_chr(...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/glue_chr.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Apply as.character() to glue() — glue_chr","text":"... dots pass glue function","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/glue_chr.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Apply as.character() to glue() — glue_chr","text":" vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/glue_data_chr.html","id":null,"dir":"Reference","previous_headings":"","what":"Apply as.character() to glue_data() — glue_data_chr","title":"Apply as.character() to glue_data() — glue_data_chr","text":"Apply .character() glue_data()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/glue_data_chr.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Apply as.character() to glue_data() — glue_data_chr","text":"","code":"glue_data_chr(.x, ...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/glue_data_chr.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Apply as.character() to glue_data() — glue_data_chr","text":".x vector pass glue_data() ... dots pass glue function","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/glue_data_chr.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Apply as.character() to glue_data() — glue_data_chr","text":" vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/grapes-nin-grapes.html","id":null,"dir":"Reference","previous_headings":"","what":"Infix operator for not in statements — %nin%","title":"Infix operator for not in statements — %nin%","text":"Infix operator statements","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/grapes-nin-grapes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Infix operator for not in statements — %nin%","text":"","code":"x %nin% table"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/grapes-nin-grapes.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Infix operator for not in statements — %nin%","text":"x vector table vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/grapes-nin-grapes.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Infix operator for not in statements — %nin%","text":"logical vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/grapes-nn-grapes.html","id":null,"dir":"Reference","previous_headings":"","what":"Infix operator for if (!is.null(x)) y else x statements — %nn%","title":"Infix operator for if (!is.null(x)) y else x statements — %nn%","text":"Infix operator (!.null(x)) y else x statements","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/grapes-nn-grapes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Infix operator for if (!is.null(x)) y else x statements — %nn%","text":"","code":"x %nn% y"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/grapes-nn-grapes.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Infix operator for if (!is.null(x)) y else x statements — %nn%","text":"x, y vectors","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/grapes-nn-grapes.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Infix operator for if (!is.null(x)) y else x statements — %nn%","text":"y x NULL, else x","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/grapes-nn-grapes.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Infix operator for if (!is.null(x)) y else x statements — %nn%","text":"","code":"NULL %nn% 123456L #> NULL \"abc\" %nn% 123456L #> [1] 123456"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gt_marks.html","id":null,"dir":"Reference","previous_headings":"","what":"gt Marks — gt_marks","title":"gt Marks — gt_marks","text":"gt Marks","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gt_marks.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"gt Marks — gt_marks","text":"","code":"gt_marks(gt_tbl, cols)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gt_marks.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"gt Marks — gt_marks","text":"gt_tbl object cols columns target","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gt_marks.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"gt Marks — gt_marks","text":" object marks","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/gt_marks.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"gt Marks — gt_marks","text":"","code":"dplyr::tibble(pass = c(TRUE, FALSE, TRUE, FALSE)) |> gt::gt() |> gt_marks(cols = pass) pass"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/histogram.html","id":null,"dir":"Reference","previous_headings":"","what":"Histogram — histogram","title":"Histogram — histogram","text":"Histogram","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/histogram.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Histogram — histogram","text":"","code":"histogram(df, var, binwidth)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/histogram.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Histogram — histogram","text":"df data frame var var binwidth binwidth","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/histogram.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Histogram — histogram","text":"ggplot2 histogram","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/histogram.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Histogram — histogram","text":"","code":"ggplot2::diamonds |> histogram(carat, 0.1)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/invert_named.html","id":null,"dir":"Reference","previous_headings":"","what":"Invert a named vector — invert_named","title":"Invert a named vector — invert_named","text":"Invert named vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/invert_named.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Invert a named vector — invert_named","text":"","code":"invert_named(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/invert_named.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Invert a named vector — invert_named","text":"x named vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/invert_named.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Invert a named vector — invert_named","text":"named vector names values inverted","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/invert_named.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Invert a named vector — invert_named","text":"","code":"invert_named(x = c(name = \"element\")) #> element #> \"name\" invert_named(x = c(element = \"name\")) #> name #> \"element\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/iqr_na.html","id":null,"dir":"Reference","previous_headings":"","what":"IQR() with NA removal — iqr_na","title":"IQR() with NA removal — iqr_na","text":"IQR() NA removal","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/iqr_na.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"IQR() with NA removal — iqr_na","text":"","code":"iqr_na(x, ...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/iqr_na.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"IQR() with NA removal — iqr_na","text":"x vector ... additional arguments pass stats::IQR()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/iqr_na.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"IQR() with NA removal — iqr_na","text":"","code":"iqr_na(c(1, 2, NA)) #> [1] 0.5"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_directory.html","id":null,"dir":"Reference","previous_headings":"","what":"Test if a path is a directory — is_directory","title":"Test if a path is a directory — is_directory","text":"Test path directory","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_directory.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Test if a path is a directory — is_directory","text":"","code":"is_directory(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_directory.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Test if a path is a directory — is_directory","text":"x directory path check","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_directory.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Test if a path is a directory — is_directory","text":"named vector, names give paths. given object exist, NA returned.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_directory.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Test if a path is a directory — is_directory","text":"","code":"is_directory(\"C:/\") #> C:/ #> FALSE"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_readable.html","id":null,"dir":"Reference","previous_headings":"","what":"Test if a path is readable — is_readable","title":"Test if a path is readable — is_readable","text":"Test path readable","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_readable.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Test if a path is readable — is_readable","text":"","code":"is_readable(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_readable.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Test if a path is readable — is_readable","text":"x vector one paths","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_readable.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Test if a path is readable — is_readable","text":" vector, names corresponding input path.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_readable.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Test if a path is readable — is_readable","text":"","code":"is_readable(\"D:/\") #> D:/ #> FALSE"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_valid_npi.html","id":null,"dir":"Reference","previous_headings":"","what":"Validate NPIs — is_valid_npi","title":"Validate NPIs — is_valid_npi","text":"Validate NPIs","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_valid_npi.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Validate NPIs — is_valid_npi","text":"","code":"is_valid_npi(npi)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_valid_npi.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Validate NPIs — is_valid_npi","text":"npi Number NPIs generate","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_valid_npi.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Validate NPIs — is_valid_npi","text":" vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/is_valid_npi.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Validate NPIs — is_valid_npi","text":"","code":"is_valid_npi(1043477615) #> [1] TRUE is_valid_npi(1234567891) #> [1] FALSE x <- random_npi_generator(100) x[collapse::whichv(purrr::map_lgl(x, is_valid_npi), TRUE)] #> [1] \"1008702189\" \"2868258296\" \"2434933059\" \"2885734709\" \"2273851685\" #> [6] \"1293779876\" \"2152431187\" \"2697169250\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/list_pins.html","id":null,"dir":"Reference","previous_headings":"","what":"List pins from a pins board — list_pins","title":"List pins from a pins board — list_pins","text":"List pins pins board","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/list_pins.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"List pins from a pins board — list_pins","text":"","code":"list_pins(...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/list_pins.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"List pins from a pins board — list_pins","text":"... arguments pass mount_board()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/list_pins.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"List pins from a pins board — list_pins","text":" pins","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mad_na.html","id":null,"dir":"Reference","previous_headings":"","what":"mad() with NA removal — mad_na","title":"mad() with NA removal — mad_na","text":"Compute median absolute deviation, .e., (lo-/hi-) median absolute deviations median, (default) adjust factor asymptotically normal consistency.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mad_na.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"mad() with NA removal — mad_na","text":"","code":"mad_na(x, ...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mad_na.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"mad() with NA removal — mad_na","text":"x vector ... additional arguments pass stats::mad()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mad_na.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"mad() with NA removal — mad_na","text":"","code":"mad_na(c(1, 2, NA)) #> [1] 0.7413"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/make_interval.html","id":null,"dir":"Reference","previous_headings":"","what":"Create interval, period and time length columns from a start and end date — make_interval","title":"Create interval, period and time length columns from a start and end date — make_interval","text":"Create interval, period time length columns start end date","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/make_interval.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create interval, period and time length columns from a start and end date — make_interval","text":"","code":"make_interval(df, start, end = lubridate::today())"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/make_interval.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create interval, period and time length columns from a start and end date — make_interval","text":"df start Start date column end End date column","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/make_interval.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create interval, period and time length columns from a start and end date — make_interval","text":" ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/make_interval.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create interval, period and time length columns from a start and end date — make_interval","text":"","code":"dplyr::tibble(date = lubridate::today() - 366) |> make_interval(start = date) #> # A tibble: 1 × 4 #> date interval period timelength_days #> #> 1 2023-08-11 2023-08-11 UTC--2024-08-11 UTC 1y 0m 0d 0H 0M 0S 366"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mean_na.html","id":null,"dir":"Reference","previous_headings":"","what":"mean() with NA removal — mean_na","title":"mean() with NA removal — mean_na","text":"mean() NA removal","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mean_na.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"mean() with NA removal — mean_na","text":"","code":"mean_na(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mean_na.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"mean() with NA removal — mean_na","text":"x vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mean_na.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"mean() with NA removal — mean_na","text":"","code":"mean_na(c(1, 2, NA)) #> [1] 1.5"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/median_na.html","id":null,"dir":"Reference","previous_headings":"","what":"median() with NA removal — median_na","title":"median() with NA removal — median_na","text":"median() NA removal","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/median_na.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"median() with NA removal — median_na","text":"","code":"median_na(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/median_na.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"median() with NA removal — median_na","text":"x vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/median_na.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"median() with NA removal — median_na","text":"","code":"median_na(c(1, 2, NA)) #> [1] 1.5"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/months_regex.html","id":null,"dir":"Reference","previous_headings":"","what":"Regular expression for matching month names — months_regex","title":"Regular expression for matching month names — months_regex","text":"Regular expression matching month names","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/months_regex.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Regular expression for matching month names — months_regex","text":"","code":"months_regex()"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/months_regex.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Regular expression for matching month names — months_regex","text":" string regex matching month names","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/months_regex.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Regular expression for matching month names — months_regex","text":"","code":"months_regex() #> [1] \"(Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|Aug(?:ust)?|Sep(?:tember)?|Oct(?:ober)?|Nov(?:ember)?|Dec(?:ember)?)\\\\s+(\\\\d{1,2})\\\\,\\\\s+(\\\\d{4})\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mount_board.html","id":null,"dir":"Reference","previous_headings":"","what":"Mount pins board — mount_board","title":"Mount pins board — mount_board","text":"Mount pins board","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mount_board.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Mount pins board — mount_board","text":"","code":"mount_board(source = c(\"local\", \"remote\"), package = \"fuimus\")"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mount_board.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Mount pins board — mount_board","text":"source \"local\" \"remote\" package package name","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/mount_board.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Mount pins board — mount_board","text":" ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/na_if_common.html","id":null,"dir":"Reference","previous_headings":"","what":"Convert various character strings to NA — na_if_common","title":"Convert various character strings to NA — na_if_common","text":"Convert various character strings NA","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/na_if_common.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Convert various character strings to NA — na_if_common","text":"","code":"na_if_common(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/na_if_common.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Convert various character strings to NA — na_if_common","text":"x vector convert","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/na_if_common.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Convert various character strings to NA — na_if_common","text":" vector converted NA values","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/na_if_common.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Convert various character strings to NA — na_if_common","text":"","code":"na_if_common(x = c(\" \", \"*\", \"--\", \"N/A\", \"\", \"A\", \"B\")) #> [1] NA NA NA NA NA \"A\" \"B\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/named_group_split.html","id":null,"dir":"Reference","previous_headings":"","what":"Split a tibble by Groups with Named List Output — named_group_split","title":"Split a tibble by Groups with Named List Output — named_group_split","text":"function takes table, groups one variables, splits grouped data list. resulting list names derived unique combinations grouping variables.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/named_group_split.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Split a tibble by Groups with Named List Output — named_group_split","text":"","code":"named_group_split(df, ...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/named_group_split.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Split a tibble by Groups with Named List Output — named_group_split","text":"df split ... One unquoted variables group split df. Variables can separated commas.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/named_group_split.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Split a tibble by Groups with Named List Output — named_group_split","text":"named tibbles, names derived unique combinations grouping variables, separated \"_\".","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/named_group_split.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Split a tibble by Groups with Named List Output — named_group_split","text":"","code":"x <- dplyr::tibble( zip = c(\"Data_Weekly.zip\", \"Data_Weekly.zip\", \"Data_April.zip\", \"Deactivated.zip\"), file = c( \"npidata.csv\", \"npidata2.csv\", \"endpoint.csv\", \"Deactivated.xlsx\")) x #> # A tibble: 4 × 2 #> zip file #> #> 1 Data_Weekly.zip npidata.csv #> 2 Data_Weekly.zip npidata2.csv #> 3 Data_April.zip endpoint.csv #> 4 Deactivated.zip Deactivated.xlsx named_group_split(x, zip) #> $Data_April.zip #> # A tibble: 1 × 2 #> zip file #> #> 1 Data_April.zip endpoint.csv #> #> $Data_Weekly.zip #> # A tibble: 2 × 2 #> zip file #> #> 1 Data_Weekly.zip npidata.csv #> 2 Data_Weekly.zip npidata2.csv #> #> $Deactivated.zip #> # A tibble: 1 × 2 #> zip file #> #> 1 Deactivated.zip Deactivated.xlsx #>"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/new_value.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate the new value from the old value and the percentage change between the two values — new_value","title":"Calculate the new value from the old value and the percentage change between the two values — new_value","text":"Calculate new value old value percentage change two values","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/new_value.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate the new value from the old value and the percentage change between the two values — new_value","text":"","code":"new_value(old, percentage_change)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/new_value.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate the new value from the old value and the percentage change between the two values — new_value","text":"old older value percentage_change percentage change","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/new_value.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Calculate the new value from the old value and the percentage change between the two values — new_value","text":" vector new value","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/new_value.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate the new value from the old value and the percentage change between the two values — new_value","text":"","code":"new_value(old = 942482, percentage_change = 0.007700943) #> [1] 949740 new_value(old = 1132783, percentage_change = -0.1679942) #> [1] 942482 # If the value of an object increased by 220%, # from the original value of # $500,000, what is it worth now? new_value(old = 500000, percentage_change = 2.2) #> [1] 1600000"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/null_if_empty.html","id":null,"dir":"Reference","previous_headings":"","what":"Return NULL if the input is empty, otherwise return the input — null_if_empty","title":"Return NULL if the input is empty, otherwise return the input — null_if_empty","text":"Return NULL input empty, otherwise return input","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/null_if_empty.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Return NULL if the input is empty, otherwise return the input — null_if_empty","text":"","code":"null_if_empty(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/null_if_empty.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Return NULL if the input is empty, otherwise return the input — null_if_empty","text":"x vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/null_if_empty.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Return NULL if the input is empty, otherwise return the input — null_if_empty","text":"vector NULL","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/null_if_empty.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Return NULL if the input is empty, otherwise return the input — null_if_empty","text":"","code":"null_if_empty(c()) #> NULL null_if_empty(c(1)) #> [1] 1"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/numeric_to_char.html","id":null,"dir":"Reference","previous_headings":"","what":"Coerce vector to — numeric_to_char","title":"Coerce vector to — numeric_to_char","text":"Coerce vector ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/numeric_to_char.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Coerce vector to — numeric_to_char","text":"","code":"numeric_to_char(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/numeric_to_char.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Coerce vector to — numeric_to_char","text":"x vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/pad_number.html","id":null,"dir":"Reference","previous_headings":"","what":"Pad numbers with zeroes — pad_number","title":"Pad numbers with zeroes — pad_number","text":"Pad numbers zeroes","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/pad_number.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Pad numbers with zeroes — pad_number","text":"","code":"pad_number(x, digits = NULL)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/pad_number.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Pad numbers with zeroes — pad_number","text":"x vector numbers digits single integer; number zeroes pad x . left NULL (default), use result max(nchar(x))","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/pad_number.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Pad numbers with zeroes — pad_number","text":" vector padded numbers","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/pad_number.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Pad numbers with zeroes — pad_number","text":"","code":"pad_number(c(56, 2584, 010, 912, 12222)) #> [1] \"00056\" \"02584\" \"00010\" \"00912\" \"12222\" pad_number(c(56, 2584, 010, 912, 00012222), digits = 10L) #> [1] \"0000000056\" \"0000002584\" \"0000000010\" \"0000000912\" \"0000012222\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_calculator.html","id":null,"dir":"Reference","previous_headings":"","what":"Percentage calculator — percentage_calculator","title":"Percentage calculator — percentage_calculator","text":"p% b, : p = /b = p * b b = /p","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_calculator.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Percentage calculator — percentage_calculator","text":"","code":"percentage_calculator(a, b)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_calculator.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Percentage calculator — percentage_calculator","text":", b values","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_calculator.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Percentage calculator — percentage_calculator","text":" vector percentage difference","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_calculator.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Percentage calculator — percentage_calculator","text":"Since absolute value taken change (difference) values, order numbers matter.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_calculator.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Percentage calculator — percentage_calculator","text":"","code":"percentage_calculator(2500, 133) #> $p #> [1] 18.79699 #> #> $a #> [1] 2500 #> #> $b #> [1] 133 #> percentage_calculator(133, 2500) #> $p #> [1] 0.0532 #> #> $a #> [1] 133 #> #> $b #> [1] 2500 #>"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_change.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate the percentage change between two values — percentage_change","title":"Calculate the percentage change between two values — percentage_change","text":"Percentage change obtained dividing change value original value.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_change.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate the percentage change between two values — percentage_change","text":"","code":"percentage_change(new, old)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_change.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate the percentage change between two values — percentage_change","text":"new newer value old older value","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_change.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Calculate the percentage change between two values — percentage_change","text":" vector percentage change","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_change.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Calculate the percentage change between two values — percentage_change","text":"result positive, increase. result negative, decrease.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_change.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate the percentage change between two values — percentage_change","text":"","code":"percentage_change(new = 949740, old = 942482) #> [1] 0.007700943 percentage_change(new = 942482, old = 1132783) #> [1] -0.1679942"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_difference.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate the percentage difference between two values — percentage_difference","title":"Calculate the percentage difference between two values — percentage_difference","text":"Percentage difference obtained dividing absolute value change average values multiplying 100.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_difference.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate the percentage difference between two values — percentage_difference","text":"","code":"percentage_difference(x, y)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_difference.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate the percentage difference between two values — percentage_difference","text":"x, y values determine percent difference , order matter","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_difference.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Calculate the percentage difference between two values — percentage_difference","text":" vector percentage difference","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_difference.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Calculate the percentage difference between two values — percentage_difference","text":"Since absolute value taken change (difference) values, order numbers matter.","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/percentage_difference.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate the percentage difference between two values — percentage_difference","text":"","code":"percentage_difference(949740, 942482) #> [1] 0.007671404 percentage_difference(942482, 1132783) #> [1] 0.1833992"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/random_npi_generator.html","id":null,"dir":"Reference","previous_headings":"","what":"Generate random NPIs — random_npi_generator","title":"Generate random NPIs — random_npi_generator","text":"Generate random NPIs","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/random_npi_generator.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Generate random NPIs — random_npi_generator","text":"","code":"random_npi_generator(n)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/random_npi_generator.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Generate random NPIs — random_npi_generator","text":"n Number NPIs generate","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/random_npi_generator.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Generate random NPIs — random_npi_generator","text":" vector n NPIs","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/random_npi_generator.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Generate random NPIs — random_npi_generator","text":"","code":"random_npi_generator(10) #> [1] \"2101740960\" \"2995200808\" \"2416182140\" \"2736791682\" \"2103965103\" #> [6] \"1721442185\" \"1998672676\" \"2560404666\" \"2394195845\" \"2974485686\" x <- random_npi_generator(100) x[collapse::whichv(purrr::map_lgl(x, is_valid_npi), TRUE)] #> [1] \"1992863377\" \"1878858426\" \"1359145194\" \"1316180235\" \"2170368841\" #> [6] \"1874265170\" \"2696584988\" \"2003973429\" \"2268628684\" \"1155645140\" #> [11] \"1572336828\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/range_na.html","id":null,"dir":"Reference","previous_headings":"","what":"range() with NA removal — range_na","title":"range() with NA removal — range_na","text":"range() NA removal","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/range_na.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"range() with NA removal — range_na","text":"","code":"range_na(...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/range_na.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"range() with NA removal — range_na","text":"... vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/range_na.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"range() with NA removal — range_na","text":"","code":"range_na(c(1, 2, NA)) #> [1] 1 2"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/rate_of_return.html","id":null,"dir":"Reference","previous_headings":"","what":"Lagged rate of return — rate_of_return","title":"Lagged rate of return — rate_of_return","text":"Lagged rate return","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/rate_of_return.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Lagged rate of return — rate_of_return","text":"","code":"rate_of_return(df, col, n = 1, fill_na = 1L)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/rate_of_return.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Lagged rate of return — rate_of_return","text":"df data frame col numeric column n values offset fill_na fill value NAs; default 1","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/rate_of_return.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Lagged rate of return — rate_of_return","text":"","code":"fuimus:::provider_data(2020:2025) |> dplyr::group_by(group) |> rate_of_return(net_payment) #> # A tibble: 12 × 4 #> year group net_payment net_payment_ror #> #> 1 2020 A 18462 1 #> 2 2021 A 16298 0.883 #> 3 2022 A 19804 1.22 #> 4 2023 A 15139 0.764 #> 5 2024 A 19088 1.26 #> 6 2025 A 10549 0.553 #> 7 2020 B 11940 1 #> 8 2021 B 18376 1.54 #> 9 2022 B 19879 1.08 #> 10 2023 B 19705 0.991 #> 11 2024 B 17459 0.886 #> 12 2025 B 13734 0.787"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/remove_quiet.html","id":null,"dir":"Reference","previous_headings":"","what":"Remove empty rows and columns — remove_quiet","title":"Remove empty rows and columns — remove_quiet","text":"Remove empty rows columns","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/remove_quiet.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Remove empty rows and columns — remove_quiet","text":"","code":"remove_quiet(df, ...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/remove_quiet.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Remove empty rows and columns — remove_quiet","text":"df data frame ... additional arguments pass janitor::remove_empty()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/remove_quiet.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Remove empty rows and columns — remove_quiet","text":"","code":"x <- dplyr::tibble( x = c(1, 2, NA), y = c(NA, NA, NA)) x #> # A tibble: 3 × 2 #> x y #> #> 1 1 NA #> 2 2 NA #> 3 NA NA remove_quiet(x) #> # A tibble: 2 × 1 #> x #> #> 1 1 #> 2 2"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/remove_quotes.html","id":null,"dir":"Reference","previous_headings":"","what":"Remove single or double quotes from a character string — remove_quotes","title":"Remove single or double quotes from a character string — remove_quotes","text":"Remove single double quotes character string","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/remove_quotes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Remove single or double quotes from a character string — remove_quotes","text":"","code":"remove_quotes(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/remove_quotes.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Remove single or double quotes from a character string — remove_quotes","text":"x vector convert","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/remove_quotes.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Remove single or double quotes from a character string — remove_quotes","text":" vector removed quotes","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/remove_quotes.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Remove single or double quotes from a character string — remove_quotes","text":"","code":"remove_quotes(x = c(\"'\", '\"')) #> [1] \"\" \"\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/rename_seq.html","id":null,"dir":"Reference","previous_headings":"","what":"Generate a sequence of numbers with a new prefix — rename_seq","title":"Generate a sequence of numbers with a new prefix — rename_seq","text":"Generate sequence numbers new prefix","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/rename_seq.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Generate a sequence of numbers with a new prefix — rename_seq","text":"","code":"rename_seq( n, new, between = \" = \", old, collapse = \", \", enclose = NULL, style = TRUE )"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/rename_seq.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Generate a sequence of numbers with a new prefix — rename_seq","text":"n Numeric sequence generate new New prefix Separator new old, default \" = \" old Old prefix collapse Separator sequences, default \", \" enclose (optional) Vector length(x) == 2 enclose output style Apply styler::style_text() output, default TRUE","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/rename_seq.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Generate a sequence of numbers with a new prefix — rename_seq","text":" collapsed vector n sequences","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/rename_seq.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Generate a sequence of numbers with a new prefix — rename_seq","text":"","code":"rename_seq( n = 10, new = \"id_issuer_\", between = \" = \", old = \"Other.ID.Issuer.\", enclose = c(\"x = c(\", \")\"), collapse = \",\\n \", style = TRUE) #> x <- c( #> id_issuer_1 = Other.ID.Issuer.1, #> id_issuer_2 = Other.ID.Issuer.2, #> id_issuer_3 = Other.ID.Issuer.3, #> id_issuer_4 = Other.ID.Issuer.4, #> id_issuer_5 = Other.ID.Issuer.5, #> id_issuer_6 = Other.ID.Issuer.6, #> id_issuer_7 = Other.ID.Issuer.7, #> id_issuer_8 = Other.ID.Issuer.8, #> id_issuer_9 = Other.ID.Issuer.9, #> id_issuer_10 = Other.ID.Issuer.10 #> )"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/roundup.html","id":null,"dir":"Reference","previous_headings":"","what":"Round a numeric vector up to the nearest decimal place — roundup","title":"Round a numeric vector up to the nearest decimal place — roundup","text":"Wrapper around janitor::round_half_up()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/roundup.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Round a numeric vector up to the nearest decimal place — roundup","text":"","code":"roundup(x, digits = 2)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/roundup.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Round a numeric vector up to the nearest decimal place — roundup","text":"x numeric vector digits Number decimal places round ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/roundup.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Round a numeric vector up to the nearest decimal place — roundup","text":"numeric vector rounded nearest decimal place","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sd_na.html","id":null,"dir":"Reference","previous_headings":"","what":"sd() with NA removal — sd_na","title":"sd() with NA removal — sd_na","text":"sd() NA removal","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sd_na.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"sd() with NA removal — sd_na","text":"","code":"sd_na(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sd_na.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"sd() with NA removal — sd_na","text":"x vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sd_na.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"sd() with NA removal — sd_na","text":"","code":"sd_na(c(1, 2, NA)) #> [1] 0.7071068"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in.html","id":null,"dir":"Reference","previous_headings":"","what":"Search in data frame — search_in","title":"Search in data frame — search_in","text":"Search data frame","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Search in data frame — search_in","text":"","code":"search_in(df, dfcol, search)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Search in data frame — search_in","text":"df dfcol specifying column search search specifying search term","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Search in data frame — search_in","text":" ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Search in data frame — search_in","text":"","code":"x <- dplyr::tibble(y = 1:10, z = letters[1:10]) search_in(df = x, dfcol = x$z, search = c(\"a\", \"j\")) #> # A tibble: 2 × 2 #> y z #> #> 1 1 a #> 2 10 j"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in_if.html","id":null,"dir":"Reference","previous_headings":"","what":"Search in data frame column if search term is not NULL — search_in_if","title":"Search in data frame column if search term is not NULL — search_in_if","text":"Search data frame column search term NULL","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in_if.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Search in data frame column if search term is not NULL — search_in_if","text":"","code":"search_in_if(df, dfcol, search)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in_if.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Search in data frame column if search term is not NULL — search_in_if","text":"df dfcol specifying column search search specifying search term","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in_if.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Search in data frame column if search term is not NULL — search_in_if","text":" ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in_if.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Search in data frame column if search term is not NULL — search_in_if","text":"","code":"x <- dplyr::tibble( y = 1:10, z = letters[1:10]) search_in_if(df = x, dfcol = x$z, search = c(\"a\", \"j\")) #> # A tibble: 2 × 2 #> y z #> #> 1 1 a #> 2 10 j search_in_if(df = x, dfcol = x$z, search = NULL) #> # A tibble: 10 × 2 #> y z #> #> 1 1 a #> 2 2 b #> 3 3 c #> 4 4 d #> 5 5 e #> 6 6 f #> 7 7 g #> 8 8 h #> 9 9 i #> 10 10 j"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in_if_args.html","id":null,"dir":"Reference","previous_headings":"","what":"Search in data frame column if search term is not NULL — search_in_if_args","title":"Search in data frame column if search term is not NULL — search_in_if_args","text":"Search data frame column search term NULL","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in_if_args.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Search in data frame column if search term is not NULL — search_in_if_args","text":"","code":"search_in_if_args(df, dfcol, search, args = NULL, multiple = FALSE)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in_if_args.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Search in data frame column if search term is not NULL — search_in_if_args","text":"df dfcol specifying column search search specifying search term args vector argument options; default NULL multiple indicating multiple search args allowed; default FALSE","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in_if_args.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Search in data frame column if search term is not NULL — search_in_if_args","text":" ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/search_in_if_args.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Search in data frame column if search term is not NULL — search_in_if_args","text":"","code":"x <- dplyr::tibble(y = 1:10, z = letters[1:10]) search_in_if_args(df = x, dfcol = x$z, search = c(\"a\", \"j\")) #> # A tibble: 2 × 2 #> y z #> #> 1 1 a #> 2 10 j search_in_if_args(df = x, dfcol = x$z, search = NULL) #> # A tibble: 10 × 2 #> y z #> #> 1 1 a #> 2 2 b #> 3 3 c #> 4 4 d #> 5 5 e #> 6 6 f #> 7 7 g #> 8 8 h #> 9 9 i #> 10 10 j search_in_if_args(df = x, dfcol = x$z, search = c(\"a\", \"j\"), args = c(\"a\", \"j\"), multiple = TRUE) #> # A tibble: 2 × 2 #> y z #> #> 1 1 a #> 2 10 j try(search_in_if_args(df = x, dfcol = x$z, search = c(\"a\", \"j\"), args = c(\"a\", \"z\"), multiple = FALSE)) #> Error in search_in_if_args(df = x, dfcol = x$z, search = c(\"a\", \"j\"), : #> `search` must be one of \"a\" or \"z\", not \"a\"."},{"path":"https://andrewallenbruce.github.io/fuimus/reference/show_missing.html","id":null,"dir":"Reference","previous_headings":"","what":"Show missing values — show_missing","title":"Show missing values — show_missing","text":"Show missing values","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/show_missing.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Show missing values — show_missing","text":"","code":"show_missing(df, group_vars, summary_vars = dplyr::everything())"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/show_missing.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Show missing values — show_missing","text":"df group_vars vector variables group summary_vars vector variables summarize; default dplyr::everything()","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/show_missing.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Show missing values — show_missing","text":"","code":"dplyr::tibble(x = 1:10, y = 1:10, z = c(letters[1:10])) |> show_missing(z) #> # A tibble: 10 × 1 #> z #> #> 1 a #> 2 b #> 3 c #> 4 d #> 5 e #> 6 f #> 7 g #> 8 h #> 9 i #> 10 j"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/single_line_string.html","id":null,"dir":"Reference","previous_headings":"","what":"Format multiple line character vector to single line — single_line_string","title":"Format multiple line character vector to single line — single_line_string","text":"Format multiple line character vector single line","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/single_line_string.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Format multiple line character vector to single line — single_line_string","text":"","code":"single_line_string(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/single_line_string.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Format multiple line character vector to single line — single_line_string","text":"x character vector line breaks (\\n)","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/single_line_string.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Format multiple line character vector to single line — single_line_string","text":" single line character vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/single_line_string.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Format multiple line character vector to single line — single_line_string","text":"","code":"single_line_string( \"(Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?| Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|\") #> [1] \"(Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|\""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sorted_bars.html","id":null,"dir":"Reference","previous_headings":"","what":"Sorted Bar Chart — sorted_bars","title":"Sorted Bar Chart — sorted_bars","text":"Sorted Bar Chart","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sorted_bars.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Sorted Bar Chart — sorted_bars","text":"","code":"sorted_bars(df, var)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sorted_bars.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Sorted Bar Chart — sorted_bars","text":"df data frame var column plot","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sorted_bars.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Sorted Bar Chart — sorted_bars","text":"ggplot2 object","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sorted_bars.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Sorted Bar Chart — sorted_bars","text":"","code":"ggplot2::diamonds |> sorted_bars(cut) + gg_theme()"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/splitter.html","id":null,"dir":"Reference","previous_headings":"","what":"Wrapper for strsplit() that unlists and unnames results — splitter","title":"Wrapper for strsplit() that unlists and unnames results — splitter","text":"Wrapper strsplit() unlists unnames results","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/splitter.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Wrapper for strsplit() that unlists and unnames results — splitter","text":"","code":"splitter(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/splitter.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Wrapper for strsplit() that unlists and unnames results — splitter","text":"x string named strings","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/splitter.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Wrapper for strsplit() that unlists and unnames results — splitter","text":"unnamed split vectors","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/splitter.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Wrapper for strsplit() that unlists and unnames results — splitter","text":"","code":"# unnamed vector splitter(\"XYZ\") #> [1] \"X\" \"Y\" \"Z\" # named vector splitter(c(x = \"XYZ\")) #> [1] \"X\" \"Y\" \"Z\" # unnamed list with one element splitter(list(\"XYZ\")) #> [1] \"X\" \"Y\" \"Z\" # unnamed list with multiple elements splitter(list(\"YYY\", \"ZZZ\")) #> [[1]] #> [1] \"Y\" \"Y\" \"Y\" #> #> [[2]] #> [1] \"Z\" \"Z\" \"Z\" #> # named list with one element splitter(list(x = \"XYZ\")) #> [1] \"X\" \"Y\" \"Z\" # named list with multiple elements splitter(list(x = \"YYY\", xx = \"ZZZ\")) #> [[1]] #> [1] \"Y\" \"Y\" \"Y\" #> #> [[2]] #> [1] \"Z\" \"Z\" \"Z\" #>"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/srchcol.html","id":null,"dir":"Reference","previous_headings":"","what":"Search a data frame column by string — srchcol","title":"Search a data frame column by string — srchcol","text":"Search data frame column string","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/srchcol.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Search a data frame column by string — srchcol","text":"","code":"srchcol(df, col, search, ignore = TRUE, ...)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/srchcol.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Search a data frame column by string — srchcol","text":"df col column name string unquoted search string search , can regular expression, e.g. '^[-Z]' ignore ignore case, default TRUE ... additional arguments","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/srchcol.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Search a data frame column by string — srchcol","text":" ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/srchcol.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Search a data frame column by string — srchcol","text":"","code":"x <- dplyr::tibble(y = 1:10, z = letters[1:10]) srchcol(df = x, col = \"z\", search = \"[a|j]\") #> # A tibble: 2 × 2 #> y z #> #> 1 1 a #> 2 10 j"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sum_na.html","id":null,"dir":"Reference","previous_headings":"","what":"sum() with NA removal — sum_na","title":"sum() with NA removal — sum_na","text":"sum() NA removal","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sum_na.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"sum() with NA removal — sum_na","text":"","code":"sum_na(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sum_na.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"sum() with NA removal — sum_na","text":"x vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/sum_na.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"sum() with NA removal — sum_na","text":"","code":"sum_na(c(1, 2, NA)) #> [1] 3"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/upgrade_personal_pkgs.html","id":null,"dir":"Reference","previous_headings":"","what":"Install/upgrade personal packages — upgrade_personal_pkgs","title":"Install/upgrade personal packages — upgrade_personal_pkgs","text":"Install/upgrade personal packages","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/upgrade_personal_pkgs.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Install/upgrade personal packages — upgrade_personal_pkgs","text":"","code":"upgrade_personal_pkgs()"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/var_na.html","id":null,"dir":"Reference","previous_headings":"","what":"var() with NA removal — var_na","title":"var() with NA removal — var_na","text":"var() NA removal","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/var_na.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"var() with NA removal — var_na","text":"","code":"var_na(x)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/var_na.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"var() with NA removal — var_na","text":"x vector","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/var_na.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"var() with NA removal — var_na","text":"","code":"var_na(c(1, 2, NA)) #> [1] 0.5"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_df.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate the number of years between two dates — years_df","title":"Calculate the number of years between two dates — years_df","text":"Calculate number years two dates","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_df.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate the number of years between two dates — years_df","text":"","code":"years_df(df, from, to)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_df.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate the number of years between two dates — years_df","text":"df Start date column End date column","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_df.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Calculate the number of years between two dates — years_df","text":" ","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_df.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate the number of years between two dates — years_df","text":"","code":"dplyr::tibble( from = as.Date(\"2020-01-01\"), to = as.Date(\"2020-01-01\") + 2057) |> years_df(from, to) #> # A tibble: 1 × 3 #> from to years_passed #> #> 1 2020-01-01 2025-08-19 5.63"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_floor.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate the number of years between two dates rounded down to the nearest whole number — years_floor","title":"Calculate the number of years between two dates rounded down to the nearest whole number — years_floor","text":"Calculate number years two dates rounded nearest whole number","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_floor.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate the number of years between two dates rounded down to the nearest whole number — years_floor","text":"","code":"years_floor(from, to)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_floor.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate the number of years between two dates rounded down to the nearest whole number — years_floor","text":" Start date End date","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_floor.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Calculate the number of years between two dates rounded down to the nearest whole number — years_floor","text":" vector number years two dates rounded nearest whole number","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_floor.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate the number of years between two dates rounded down to the nearest whole number — years_floor","text":"","code":"years_floor( from = as.Date(\"2020-01-01\"), to = as.Date(\"2020-01-01\") + 2057) #> [1] 5"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_vec.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate the number of years between two dates — years_vec","title":"Calculate the number of years between two dates — years_vec","text":"Calculate number years two dates","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_vec.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate the number of years between two dates — years_vec","text":"","code":"years_vec(from, to)"},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_vec.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate the number of years between two dates — years_vec","text":" Start date End date","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_vec.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Calculate the number of years between two dates — years_vec","text":" vector number years two dates","code":""},{"path":"https://andrewallenbruce.github.io/fuimus/reference/years_vec.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate the number of years between two dates — years_vec","text":"","code":"years_vec( from = as.Date(\"2020-01-01\"), to = as.Date(\"2020-01-01\") + 2057) #> [1] 5.63"},{"path":[]},{"path":"https://andrewallenbruce.github.io/fuimus/news/index.html","id":"fuimus-001","dir":"Changelog","previous_headings":"","what":"fuimus 0.0.1","title":"fuimus 0.0.1","text":"Initial commit.","code":""}] diff --git a/sitemap.xml b/sitemap.xml index 0066726..2267b58 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -10,6 +10,10 @@ https://andrewallenbruce.github.io/fuimus/reference/age_days.html https://andrewallenbruce.github.io/fuimus/reference/change.html https://andrewallenbruce.github.io/fuimus/reference/change_lagged.html +https://andrewallenbruce.github.io/fuimus/reference/check_chars_numeric.html +https://andrewallenbruce.github.io/fuimus/reference/check_first_char.html +https://andrewallenbruce.github.io/fuimus/reference/check_length.html +https://andrewallenbruce.github.io/fuimus/reference/check_nchars_10.html https://andrewallenbruce.github.io/fuimus/reference/chg_abs.html https://andrewallenbruce.github.io/fuimus/reference/chg_pct.html https://andrewallenbruce.github.io/fuimus/reference/clean_number.html @@ -46,6 +50,7 @@ https://andrewallenbruce.github.io/fuimus/reference/iqr_na.html https://andrewallenbruce.github.io/fuimus/reference/is_directory.html https://andrewallenbruce.github.io/fuimus/reference/is_readable.html +https://andrewallenbruce.github.io/fuimus/reference/is_valid_npi.html https://andrewallenbruce.github.io/fuimus/reference/list_pins.html https://andrewallenbruce.github.io/fuimus/reference/mad_na.html https://andrewallenbruce.github.io/fuimus/reference/make_interval.html @@ -57,10 +62,12 @@ https://andrewallenbruce.github.io/fuimus/reference/named_group_split.html https://andrewallenbruce.github.io/fuimus/reference/new_value.html https://andrewallenbruce.github.io/fuimus/reference/null_if_empty.html +https://andrewallenbruce.github.io/fuimus/reference/numeric_to_char.html https://andrewallenbruce.github.io/fuimus/reference/pad_number.html https://andrewallenbruce.github.io/fuimus/reference/percentage_calculator.html https://andrewallenbruce.github.io/fuimus/reference/percentage_change.html https://andrewallenbruce.github.io/fuimus/reference/percentage_difference.html +https://andrewallenbruce.github.io/fuimus/reference/random_npi_generator.html https://andrewallenbruce.github.io/fuimus/reference/range_na.html https://andrewallenbruce.github.io/fuimus/reference/rate_of_return.html https://andrewallenbruce.github.io/fuimus/reference/remove_quiet.html