Excellent, thank you to both of you!!!
Gail
--
View this message in context:
http://r.789695.n4.nabble.com/apply-function-over-same-column-of-all-objects-in-a-list-tp4638681p4639009.html
Sent from the R help mailing list archive at Nabble.com.
__
R
Hi,
my dataset is the result of the function "density" on another set of data.
It refers to that data in its variable "call", though since all the results
are actually reproduced (except that I've removed all rows bar 10), I am not
sure why R still needs it. But I've understood now why your code d
Michael, here is the data I am working with. I've shortened it without, I
trust, changing its nature. I am not using any package other than what is
pre-installed. Many thanks, Gail
> dput(list.example)
list
(structure(list(
x = c(379.455895016957, 380.116796110287,
380.7776
Well but the whole point was to be able to plug in a single command and get
the result for all sublists. If I have to create a new list and type in each
sublist and the column I'm interested in, that completely defeats the
purpose, I might as well just ask for max(sublist$coconut) for each sublist,
Arun, I see you've defined dat5 in your later message; however the same
applies as to the above: the code doesn't work if the list contains
non-numerical elements.
Gail
--
View this message in context:
http://r.789695.n4.nabble.com/apply-function-over-same-column-of-all-objects
Thank you!!! But I realise I've simplified my data to the point that your
solution doesn't actually work -- not your fault, mine! My list is actually
more complicated than what I presented it to be; it's not composed of
numerical matrices but of lists, each being composed of 7 columns, the first
tw
ix.max <- for (i in 1:3) {
mapply ( max, list [[i]] [2] )
}
for each column's max and
total.max <- for (i in 1:3) {
max(mapply ( max, list [[i]] [2] ))
}
for the total max, but neither works (result: NULL). What am I doing wrong?
Thanks a lot,
Gail
--
View this message in cont
#x27;better'? Is there
a way to calculate confidence intervals for tau?
Thanks,
Gail
Dr. Gail Ashton
Post-Doctoral Fellow
Marine Invasions Research Group
Smithsonian Environmental Research Centre
[[alternative HTML version deleted]]
__
e p-values can go + my data are just
really not normal?
Any help much appreciated.
Thanks,
Gail
__
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
9 matches
Mail list logo