Learn R Programming

forestFloor (version 1.11.1)

append.overwrite.alists: Combine two argument lists

Description

First argument list is master, second list slave

Usage

append.overwrite.alists(masterArgs,slaveArgs)

Arguments

masterArgs

List of arguments, of which will stay unchanged

slaveArgs

List of arguments, conflicts with masterArgs will be deleted. Additional args will be appended.

Value

List of arguments, being masterArgs appended by slaveArgs

Details

This function combines to lists of arguments. Conflicts will be resolved by masterArgs.

Examples

Run this code

arglist1 = alist(monkey="happy",telephone.no=53)
arglist2 = alist(monkey="sad",house.no=12)

#this should yield a alist(monkey="happy", telephone.no=53, house.no=12)
forestFloor:::append.overwrite.alists(arglist1,arglist2)

Run the code above in your browser using DataLab