Hi Elk,
Thanks for the input. Somehow, I got entangled with which.max. I should
have used max.
lapply(list4,function(x) max(x[[1]]$coconut))
[[1]]
[1] 6
[[2]]
[1] 18
[[3]]
[1] 9
max(unlist(lapply(list4,function(x) max(x[[1]]$coconut))))
#[1] 18
A.K.
_______________________________________________
If you reply to this email, your message will be added to the discussion below:
http://r.789695.n4.nabble.com/apply-function-over-same-column-of-all-objects-in-a-list-tp4638681p4638923.html
To unsubscribe from apply function over same column of all objects in a list,
visit
http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4638681&code=ci1oZWxwQHItcHJvamVjdC5vcmd8NDYzODY4MXwtNzg0MjM1NTA4
[[alternative HTML version deleted]]
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.