Skip to content
Prev 360274 / 398503 Next

Merge sort

On 20/04/2016 7:38 AM, Gaston wrote:
length() is a simple query, and is very fast.  The other problem in your 
approach (which may not be a problem with your current data) is that NA 
is commonly used as an element of a vector to represent a missing value.
"Avoided" may be too strong:  speed isn't always a concern, sometimes 
clarity is more important.  Growing vectors is definitely expensive.

Duncan Murdoch