On Nov 19, 2009, at 4:31 PM, Peng Yu wrote:
On Thu, Nov 19, 2009 at 4:27 PM, Marc Schwartz
wrote:
On Nov 20, 2009, at 10:21 AM, Peng Yu wrote:
There are a few version of apply() (e.g., lapply(), sapply()). I'm
wondering if there is one that does not return anything but just
silently apply a
On Thu, Nov 19, 2009 at 5:31 PM, Peng Yu wrote:
> Is there a way to get the name of the list in the loop body?
This was just discussed! See this thread:
https://stat.ethz.ch/pipermail/r-help/2009-November/218919.html
__
R-help@r-project.org mailing
I want to use both the name and the content. Although, I could do the
following thing.
for(x in names(List)) {
do some thing with x
do some thing with List[[x]]
}
However, I'd prefer something like the following if R offers such
functionality. But it seems not.
for(x in List) {
do somethin
On Thu, Nov 19, 2009 at 4:27 PM, Marc Schwartz wrote:
> On Nov 20, 2009, at 10:21 AM, Peng Yu wrote:
>
>> There are a few version of apply() (e.g., lapply(), sapply()). I'm
>> wondering if there is one that does not return anything but just
>> silently apply a function to the list argument.
>>
>>
invisible(apply(...))
On Thu, Nov 19, 2009 at 5:21 PM, Peng Yu wrote:
> There are a few version of apply() (e.g., lapply(), sapply()). I'm
> wondering if there is one that does not return anything but just
> silently apply a function to the list argument.
>
> For example, the plot function is app
On Thu, Nov 19, 2009 at 2:21 PM, Peng Yu wrote:
> There are a few version of apply() (e.g., lapply(), sapply()). I'm
> wondering if there is one that does not return anything but just
> silently apply a function to the list argument.
>
> For example, the plot function is applied to each element in
On Nov 20, 2009, at 10:21 AM, Peng Yu wrote:
There are a few version of apply() (e.g., lapply(), sapply()). I'm
wondering if there is one that does not return anything but just
silently apply a function to the list argument.
For example, the plot function is applied to each element in 'alist'.
There are a few version of apply() (e.g., lapply(), sapply()). I'm
wondering if there is one that does not return anything but just
silently apply a function to the list argument.
For example, the plot function is applied to each element in 'alist'.
It is redundant to return anything from apply.
8 matches
Mail list logo