| size | R Documentation |
Obtain the number of elements in a container.
size(x)
x |
A CppSet, CppUnorderedSet, CppMultiset, CppUnorderedMultiset, CppMap, CppUnorderedMap, CppMultimap, CppUnorderedMultimap, CppStack, CppQueue, CppPriorityQueue, CppVector, CppDeque, or CppList object. |
Returns a numeric.
bucket_count, capacity, load_factor, max_size, resize.
s <- cpp_unordered_set(4:6)
s
# 6 5 4
size(s)
# [1] 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.