Dear R users: I am hoping that someone can help with constructing a list that consists of list with the number of lists variable. i.e. to find a convenient express(or loop sentences) to realize the following: list( list(para1=p1, para2=p2), list(para1=p1, para2=p2), ...., list(para1=p1,para2=p2) ) I appreciate your help. best, Zhongyi [[alternative HTML version deleted]]
On 03/12/2010 05:13 PM, Zhongyi Yuan wrote:> Dear R users: > > I am hoping that someone can help with constructing a list that consists of > list with the number of lists variable. > i.e. to find a convenient express(or loop sentences) to realize the > following: > list( list(para1=p1, para2=p2), list(para1=p1, para2=p2), ...., > list(para1=p1,para2=p2) ) >Hi Zhongyi, Have a look at the listBuilder function in the crank package. Jim