Skip to content
Back to formatted view

Raw Message

Message-ID: <6E8D8DFDE5FA5D4ABCB8508389D1BF8802BDF903@SRVEXCHMBX.precheza.cz>
Date: 2014-08-26T12:21:26Z
From: PIKAL Petr
Subject: How to do t.test to rows of a dataframe using apply family	function?
In-Reply-To: <4e03bf24.6a9c.14811d885a3.Coremail.my1stbox@163.com>

Hi
That is because do.call is one function and rbind another. For both functions you can find its help page and read:
rbind
vectors or matrices. These can be given as named arguments. Other R objects will be coerced as appropriate: see sections ?Details? and ?Value?.

The type of a matrix result determined from the highest type of any of the inputs in the hierarchy raw < logical < integer < double < complex < character < list .
do.call
what

either a function or a non-empty character string naming the function to be called.

args

a list of arguments to the function call. The names attribute of args gives the argument names.

Actually inner lapply was not necessary and simple
do.call("rbind", lll)
gives the same result.