I indeed used is.na() to check length, as I was not sure weather
lenght() was a simple query or would go through the whole vector to
count the elements.
So to sum up, function calls are expensive, therefore recursion should
be avoided, and growing the size of a vector (which is probably
reassigning and copying?) is also expensive.
The Pull Request resolves Issue #
Description:
A brief description about the addition or edits made.
Notes: Delete all the text including this!
The pull request made should be in the prescribed format.
The #<IssueNumber> should be replaced with the specific Issue being referenced!
Reviewers should be added in order to review the pull request made. Adding more number of reviewers helps in getting the PR merged faster.
…in C
I indeed used is.na() to check length, as I was not sure weather lenght() was a simple query or would go through the whole vector to count the elements.
So to sum up, function calls are expensive, therefore recursion should be avoided, and growing the size of a vector (which is probably reassigning and copying?) is also expensive.
The Pull Request resolves Issue #
Description: A brief description about the addition or edits made.
Notes: Delete all the text including this!
#<IssueNumber>
should be replaced with the specific Issue being referenced!