title: Change specific columns in list of data frames - R
body: <p>In a list of data frames: (<code>mylist&lt;-list(iris, mtcars, ToothGrowth)</code>), how can I make a change only to specific columns within the list?</p>
  
  <p>For example, I have a character vector (<code>test</code>) that gives the column names<code>"Petal.Width"</code> and <code>"drat"</code>. How can I match these names to column names in my list of data frames and apply something like <code>log(x + 1)</code>?</p>
  
  <p>So far I am able to get the required columns <a href="https://stackoverflow.com/questions/49765691/index-nested-lists-of-named-data-frames-using-character-vector-r?noredirect=1#comment86547446_49765691">out on their own</a>, but I'm not sure how to keep the whole list of data frames together and just alter a couple of columns. Thank you</p>