-
Notifications
You must be signed in to change notification settings - Fork 14
Implemented Features #1 #3 #5 #6 #33
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
base: master
Are you sure you want to change the base?
Conversation
git commit -m Fix
Codecov Report
@@ Coverage Diff @@
## master #33 +/- ##
=========================================
Coverage ? 35.29%
=========================================
Files ? 3
Lines ? 17
Branches ? 0
=========================================
Hits ? 6
Misses ? 11
Partials ? 0
Continue to review full report at Codecov.
|
mannau
left a comment
There was a problem hiding this 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 | |||
| #' | |||
There was a problem hiding this comment.
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. | |||
| #' | |||
There was a problem hiding this comment.
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. | |||
| #' | |||
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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?
Pull request to add the features described in #1 #3 #5 #6.