[R] accessing list elements

From: Paul Adams <pma3622_at_yahoo.com>
Date: Tue, 29 Jul 2008 09:56:29 -0700 (PDT)

Hello everyone,
I have a list which I am trying to calculate a max value.I have the list as w<-c(v[[1]][1],...v[[100]][1]). The problem I am getting is that the function max is saying the list is an "invalid type (list) of  argument".When I show the element v[[1]][1] it shows as $statistic,V,736.I am only wanting to use the number 736 from v[[1]][1] but am not sure how to access that number only?I believe if I just use the number then I should be able to calculate the max.

Any help would be appreciated


	[[alternative HTML version deleted]]


R-help_at_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. Received on Tue 29 Jul 2008 - 17:08:50 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 29 Jul 2008 - 18:32:51 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive