tag:blogger.com,1999:blog-8781383461061929571.post6081767281904266262..comments2024-03-14T09:08:19.035-04:00Comments on OR in an OB World: Accessing R Objects By NamePaul A. Rubinhttp://www.blogger.com/profile/05801891157261357482noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8781383461061929571.post-45934942064675063702016-08-08T14:28:51.896-04:002016-08-08T14:28:51.896-04:00Agreed, looping through lists is a black art.Agreed, looping through lists is a black art.Anonymoushttps://www.blogger.com/profile/02417642533841862576noreply@blogger.comtag:blogger.com,1999:blog-8781383461061929571.post-1370865700257054832016-08-06T11:23:14.707-04:002016-08-06T11:23:14.707-04:00Looping is worth some thought. One can apply a num...Looping is worth some thought. One can apply a number of looping functions, including a for-loop, to a list, but I suspect in some cases looping over vectors is easier to get right than looping over lists.Paul A. Rubinhttps://www.blogger.com/profile/05801891157261357482noreply@blogger.comtag:blogger.com,1999:blog-8781383461061929571.post-21026192501611160862016-08-05T22:07:23.244-04:002016-08-05T22:07:23.244-04:00I have used assign() to give objects descriptive n...I have used assign() to give objects descriptive names, add those names to a character vector, then for-loop through the character vector to retrieve the objects in later uses. Granted, this was before I had a better understanding on how to create lists, but I think it's still a useful technique.<br /><br />RalphAnonymoushttps://www.blogger.com/profile/02417642533841862576noreply@blogger.com