Learn R Programming

forestFloor (version 1.4)

append.overwrite.alists: Combine two argument lists

Description

first list 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. Conflict 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