#to copy an object use: duplicate(object, shallow=FALSE) #Recursive data structures like lists, calls and pairlists are duplicated in full by default. #A shallow copy only duplicates the top-level data structure.