add: Add an element

Description Usage Arguments Examples

Description

add appends an item to a structure within the object.

Usage

1
2
3
4
5
6
7
add(obj, item, ...)

## S4 method for signature 'all_items,single_item'
add(obj, item, ...)

## S4 method for signature 'product_logs,product_transac'
add(obj, item, ...)

Arguments

obj

An object.

item

An item to be added.

Examples

1
2
## Not run: add(shopping_cart, an_item) #A single_item is added to the first position of the list within the all_items object.
## Not run: add(transac_log, a_trnsac) #A product_transac is added to the first position of the list within the product_logs object.

Samantha-Lui/EZRecords documentation built on May 5, 2019, 4:46 p.m.