| max_load_factor | R Documentation |
Get or set the maximum load factor by reference, i.e. the number of elements per bucket.
max_load_factor(x, max_load = NULL)
x |
A CppUnorderedSet, CppUnorderedMultiset, CppUnorderedMap, or CppUnorderedMultimap object. |
max_load |
The containers maximum load factor. If |
Returns a numeric, if max_load is NULL. Invisibly returns NULL, if max_load is numeric.
bucket_count, load_factor, max_bucket_count.
s <- cpp_unordered_set(4:6)
max_load_factor(s)
# [1] 1
max_load_factor(s, 3)
max_load_factor(s)
# [1] 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.