[R] How to do indexing after splitting my data-frame?
Oliver Bandel
oliver at first.in-berlin.de
Sat Dec 20 22:10:35 CET 2008
Hello Jim,
jim holtman <jholtman <at> gmail.com> writes:
>
> try:
>
> myindex <- "01-Dec-2008"
>
> weblog_by_date[[myindex]]$host
[...]
Ooops yes, that works!
Thank you!
I don't know why this works, and the other thing not.
I thought the difference between [] and [[]] is just,
that the one gives back a list and the other grabs out the
values of a list by "unlist"ing it... so that one gets a vector instead of a
complete list.
Ciao,
oliver
More information about the R-help
mailing list