Hello,
I'd like to understand the following scenario. We are creating two lists where each has the name RT
and yet when running the_list["RT"]
it only returns the first one but not both?
> the_list <- c(list(RT=1),list(RT=5))
>
> the_list
$RT
[1] 1
$RT
[1] 5
>
> the_list["RT"]
$RT
[1] 1
I am assuming the_list["RT"]
is returning the first true value or returning false if it is not able to find any instance of true. I suppose my main question is - why is there nothing stopping the list object from accepting a new list with the same name as an existing one and then secondly if that is good intended behaviour why not have the_list["RT"]
call show all instances of true?