flattenList: Takes a list serving as a dictionary and appends a string to...

Description Usage Arguments Value

View source: R/flattenList.R

Description

Takes a list serving as a dictionary and appends a string to the key of each list Suppose we have 'dog = list(legs = 4, smell = good)' flattenList('DOG', list(legs = 4, smell = good)) return list(DOGlegs = 4, DOGsmell = good)

Usage

1
flattenList(first.key, values)

Arguments

first.key

the new key string to append

values

the list serving as a dictionary

Value

new.list


johnjosephhorton/JJHmisc documentation built on May 19, 2019, 5:15 p.m.