How to use setNames on subelements of list I found this question but it does not seem to work for me.