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

Implemented Features #1 #3 #5 #6 #33

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

apeterseil
Copy link

Pull request to add the features described in #1 #3 #5 #6.

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@c4b35b1). Click here to learn what that means.
The diff coverage is 35.71%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #33   +/-   ##
=========================================
  Coverage          ?   35.29%           
=========================================
  Files             ?        3           
  Lines             ?       17           
  Branches          ?        0           
=========================================
  Hits              ?        6           
  Misses            ?       11           
  Partials          ?        0
Impacted Files Coverage Δ
R/meanimpute.R 0% <ø> (ø)
R/transform_log.R 0% <0%> (ø)
R/windsorize.R 75% <71.42%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c4b35b1...ed28c49. Read the comment docs.

Copy link
Member

@mannau mannau left a comment

Choose a reason for hiding this comment

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

Great work! I've just found some minor issues/questions.

@@ -1,4 +1,9 @@
#' Meanimputation
#'
Copy link
Member

Choose a reason for hiding this comment

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

A longer function description would be nice here.

@@ -0,0 +1,17 @@
#' Log transforms data.
#'
Copy link
Member

Choose a reason for hiding this comment

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

Again, a short description what the function is actually doing.

@@ -1,10 +1,20 @@
#' Windsorize
#' Windsorizes data.
#'
Copy link
Member

Choose a reason for hiding this comment

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

Description missing

if(length(x)==0){
stop("x must be of positive length")
}else if(sum(is.na(x))>0){
stop("x must not contain any NA")
Copy link
Member

Choose a reason for hiding this comment

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

Does the function have to return an error if the vector contains NA's?
The specifications says it has to return an error if the vector contains ONLY NA's.
What could be the workaround?

}else if(sum(x<=0)>0){
stop("x must not contain non-positive values")
}else if(sum(is.na(x))>0){
stop("x must not contain any NA")
Copy link
Member

Choose a reason for hiding this comment

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

Why are no NA's allowed during the log-transform?

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.

3 participants