clear | R Documentation |
Removes all elements from the container object.
clear(x) ref_clear(x) ## S3 method for class 'Container' clear(x) ## S3 method for class 'Container' ref_clear(x) ## S3 method for class 'dict.table' clear(x) ## S3 method for class 'dict.table' ref_clear(x)
x |
any |
For Container, an object of class Container (or one of the respective derived classes).
For dict.table an object of class dict.table.
co = container(1, 2, mean) clear(co) co ref_clear(co) co dit = dict.table(a = 1, b = 2) clear(dit) dit # original was not touched ref_clear(dit) dit # original was cleared
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.