Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename rowmean_n() to row_means() #448

Merged
merged 16 commits into from
Sep 7, 2023
Merged

Rename rowmean_n() to row_means() #448

merged 16 commits into from
Sep 7, 2023

Conversation

strengejacke
Copy link
Member

Fixes #447

@strengejacke
Copy link
Member Author

Still needs some fixing, though.

@codecov
Copy link

codecov bot commented Aug 14, 2023

Codecov Report

Merging #448 (778d572) into main (10599b2) will increase coverage by 0.02%.
The diff coverage is 96.77%.

❗ Current head 778d572 differs from pull request most recent head bd127c6. Consider uploading reports for the commit bd127c6 to get more accurate results

@@            Coverage Diff             @@
##             main     #448      +/-   ##
==========================================
+ Coverage   88.61%   88.63%   +0.02%     
==========================================
  Files          71       71              
  Lines        5182     5192      +10     
==========================================
+ Hits         4592     4602      +10     
  Misses        590      590              
Files Changed Coverage Δ
R/row_means.R 96.77% <96.77%> (ø)

NEWS.md Outdated
@@ -2,8 +2,8 @@

NEW FUNCTIONS

* `rowmean_n()`, to compute row means if row contains at least `n` non-missing
values.
* `row_means()`, to compute row means, optionally only for those row with at
Copy link
Member

Choose a reason for hiding this comment

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

why is it plural means ? doesn't it return just the mean?

Copy link
Member Author

Choose a reason for hiding this comment

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

Like rowMeans() from base R, it computes mean_s_ of several rows.

Copy link
Member

@etiennebacher etiennebacher left a comment

Choose a reason for hiding this comment

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

@IndrajeetPatil are you ok with this new name?

NEWS.md Outdated Show resolved Hide resolved
strengejacke and others added 2 commits August 15, 2023 10:00
Co-authored-by: Etienne Bacher <52219252+etiennebacher@users.noreply.github.com>
@etiennebacher etiennebacher changed the title Rename rowmean_n()? Rename rowmean_n() to row_means() Aug 18, 2023
@strengejacke
Copy link
Member Author

ping @IndrajeetPatil

@strengejacke strengejacke merged commit 877c587 into main Sep 7, 2023
26 checks passed
@strengejacke strengejacke deleted the strengejacke/issue447 branch September 7, 2023 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename rowmean_n()?
3 participants