Hi Santosh,
Try this:
sapply(d, `[[`, i = 1)
To answer your question about "without using the apply functions", I
think the answer is "not really". Data frames are a type of list, so
if you can assume that it is reasonable to extract the same element
from every element of your list, that is for
Hi Santosh,
One way would be
> sapply(d, "[", 1)
[1] "20110405" "20110405" "20110405" "20110405" "20110405" "20110405"
HTH,
Jorge
On Thu, Apr 7, 2011 at 2:14 AM, santosh <> wrote:
> Hello Group,
>
> Is there a simpler way to get data out of a list object? (like in data
> frame without using t
2 matches
Mail list logo