Re: [R] R beginner - how to apply function to more than one matrix / data.array / ...

From: Gabor Csardi <csardi_at_rmki.kfki.hu>
Date: Wed, 09 Apr 2008 17:57:49 +0200

Yes, it is exactly 'apply', and its friends. E.g. you can collect the objects into a list and then do

sapply(mylist, is.matrix)

G.

On Wed, Apr 09, 2008 at 11:52:08AM -0400, Mon Mag wrote:
> I would like to apply a simple function, like
> is.matrix
> to more than one data.frame
> How can I call on more than one data.frame? (are there any wildcards, etc?)
>
> I am a true beginner and have tried to look this up in help files, but
> cannot figure it out.
>
> Thank you.
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

-- 
Csardi Gabor <csardi_at_rmki.kfki.hu>    UNIL DGM

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 09 Apr 2008 - 16:25:14 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 09 Apr 2008 - 16:30:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive