abishekarun / STAT545-hw-rajendran-arun

0 stars 0 forks source link

hw09 ready for grading #9

Open abishekarun opened 6 years ago

abishekarun commented 6 years ago

SHA: f00250e1fde3564679f77632eae373a72de513b5 Readme file

Package

*functions fact_fun() and nthFibonacci modified after suggestions.

jardnzm commented 6 years ago

Hi @abishekarun ,

Overall a solid homework. You have completed all the required tasks, and it seems like you understand the mechanics behind building a package, which is important.

Best, Ziming

mylinhthibodeau commented 6 years ago

Dear @abishekarun,

Good job on homework 9. I was able to install you package successfully, but there were a few problems with the functions of your package.

Homework requirements:

General comments:

Function-specific comments

I have written some function-specific feedback and ideas below. Most of the material below is not meant as a peer review, but instead meant to help you troubleshoot some issues in your code.

Overall, writing a package is a substantial challenge and I think that you did well in the light of the difficulty of this specific task !!

Regards, My Linh Thibodeau

abishekarun commented 6 years ago

Dear @mylinhthibodeau , First of all, thank you for such an elaborate review for my homework 9. I would like to clarify few things with respect to my homework.

1) I wanted to implement more functions. So, I didnt have time to implement the functions in such a way that they accept list/vector inputs. As of now, they are developed such that only numbers as input works and it doesnt work for lists/vectors.I tested them and debugged them with only numbers and not vectors.This is the reason I believe you were getting the errors for some of the functions such as nthroot.I will try to incorporate this functionality soon in order to avoid these errors.

2) I understand that fibonacci series has first term has 0 and second term has 1. I wanted to develop a custom function that follows fibonacci series by default but in general follows that pattern according to user's input. I believe the name of the function should have been different to avoid the confusion.

3) I thank you for pointing out the error in the readme file regarding the function names. I have corrected the same. Also, I had to rename the function logarithm since there was already inbuilt log function. I understand the confusion with function name and file name, will try to keep it consistent from next time. Thanks for the suggestions.

4) The nthFibonacci function that I developed was intended to return the nth number excluding the first and second term. I have checked the function and there was a small typo. I have corrected the same and modified it to return the numbers including the first and the second term now. Thank you so much for pointing it out.

5) The fact_fun() similarly had a typo as I was trying to return a variable when n is equal to zero. I have fixed it now. Thanks to pointing it out and your suggestion.

6) I used the !grepl("[^[:digit:]]", format(x, digits = 20, scientific = FALSE)) to check if the number is an integer or not as I couldn't find a way to filter out the integers alone using the inbuilt functions.

7) Finally, I tried developing sum_series() in order to get the sum of an arithmetic progression (AP) series. I am sorry that I didn't mention this clearly in the documentation. I have changed that upon your suggestion as well.

Also, I think it is great idea to add the stat545/547 team now so that they can clone my repository and run check() for testing the package. I have gone ahead and followed your suggestions and added them now. Thanks for that.

Thank you so much for such a detailed interview as it helped me correct the mistakes and improve the functionality. I have corrected some of the mistakes. I will try to incorporate the vector/lists support soon. Thank you once again for your elaborate review and valuable suggestions.

Regards abishekarun