Re: [R] How to figure out which the version of split is used?

2009-12-11 Thread Karl Ove Hufthammer
On Thu, 10 Dec 2009 13:56:12 -0600 Peng Yu pengyu...@gmail.com wrote: type data.frame, split.data.frame will be called? Is it the case that if the argument is not of type data.frame, Date or POSIXct, split.default will be called? Yes. See ?UseMethod I tried it. But I'm not sure how to

Re: [R] How to figure out which the version of split is used?

2009-12-11 Thread William Dunlap
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Karl Ove Hufthammer Sent: Thursday, December 10, 2009 1:46 AM To: r-h...@stat.math.ethz.ch Subject: Re: [R] How to figure out which the version of split is used? On Wed, 9 Dec

Re: [R] How to figure out which the version of split is used?

2009-12-10 Thread Patrick Connolly
On Wed, 09-Dec-2009 at 07:20PM -0600, Peng Yu wrote: | There are a number of functions that are dispatched to from split(). | | methods('split') | [1] split.data.frame split.Date split.defaultsplit.POSIXct | | Is there a way to figure out which of these variants is actually |

Re: [R] How to figure out which the version of split is used?

2009-12-10 Thread Karl Ove Hufthammer
On Wed, 9 Dec 2009 19:20:47 -0600 Peng Yu pengyu...@gmail.com wrote: Is there a way to figure out which of these variants is actually dispatched to when I call split? I know that if the argument is of the type data.frame, split.data.frame will be called? Is it the case that if the argument is

Re: [R] How to figure out which the version of split is used?

2009-12-10 Thread Peng Yu
On Thu, Dec 10, 2009 at 3:46 AM, Karl Ove Hufthammer k...@huftis.org wrote: On Wed, 9 Dec 2009 19:20:47 -0600 Peng Yu pengyu...@gmail.com wrote: Is there a way to figure out which of these variants is actually dispatched to when I call split? I know that if the argument is of the type

[R] How to figure out which the version of split is used?

2009-12-09 Thread Peng Yu
There are a number of functions that are dispatched to from split(). methods('split') [1] split.data.frame split.Date split.defaultsplit.POSIXct Is there a way to figure out which of these variants is actually dispatched to when I call split? I know that if the argument is of the type