- 1. Applying vector functions to dataframes (score: 1)
- Author: "Eric Turkheimer" <ent3c@virginia.edu>
- Date: Mon, 25 Jul 2005 16:27:48 -0400
- I have a fairly simple function that takes two vectors as arguments with a scalar result. I would like to apply it pairwise to all the columns in a large dataset, resulting in a symmetrical matrix. (
- /archives/html/s-news/2005-07/msg00134.html (10,013 bytes)
- 2. Re: Applying vector functions to dataframes (score: 1)
- Author: "Thomas Jagger" <tjagger@blarg.net>
- Date: Tue, 26 Jul 2005 10:47:35 -0600
- Good morning. I have written many functions that perform similarly. If you can use a single function on the whole matrix, using matrix mathematics then that is the fastest. For example the unbiased c
- /archives/html/s-news/2005-07/msg00138.html (9,769 bytes)
- 3. Re: Applying vector functions to dataframes (score: 1)
- Author: Tony Plate <tplate@blackmesacapital.com>
- Date: Thu, 28 Jul 2005 11:00:34 -0600
- [snip] However, lapply uses for loops, so you might as well use the for loops explicitly (or try R). Actually, while that is true in R, I believe it is not true in S-PLUS: in S-PLUS lapply() calls t
- /archives/html/s-news/2005-07/msg00153.html (11,718 bytes)
- 4. Re: Applying vector functions to dataframes (score: 1)
- Author: Prof Brian Ripley <ripley@stats.ox.ac.uk>
- Date: Fri, 29 Jul 2005 08:03:11 +0100 (BST)
- However, lapply uses for loops, so you might as well use the for loops explicitly (or try R). Actually, while that is true in R, I believe it is not true in S-PLUS: in S-PLUS lapply() calls the compi
- /archives/html/s-news/2005-07/msg00155.html (8,660 bytes)
This search system is powered by
Namazu