SyntaxFix
Write A Post
Hire A Developer
Questions
mylist[c(5,7,9)] should do it.
mylist[c(5,7,9)]
You want the sublists returned as sublists of the result list; you don't use [[]] (or rather, the function is [[) for that -- as Dason mentions in comments, [[ grabs the element.
[[]]
[[