Full_Name: Simon de Bernard
Version: 2.7.0 (44733)
OS: MacOS
Submission from: (NULL) (140.77.34.213)
"by" usually takes forever even on a "not so large" data structure.
If one can do with a matrix instead of a data.frame, defining by.matrix as
by.data.frame modified to convert data back to a dat
Anyway something like "yield" would be very nice to have.
Would it be hard to implement?
It could be in a similar way to scala where you can define for-comprehensions.
I really miss them in R.
best wishes
ferdinand
On Tue, Apr 1, 2008 at 12:32 PM, Luke Tierney <[EMAIL PROTECTED]> wrote:
> No. Fir
Can I suggest some clarification of the help page for callCC
plainly stating that it is intended to exit from a deeply nested
set of calls.
On a casual reading I thought the exact same thing as f.jamitsky.
On Tue, Apr 1, 2008 at 6:32 AM, Luke Tierney <[EMAIL PROTECTED]> wrote:
> No. First class
No. First class continuations of the kind provided in scheme can be
used as a means to implement generators, but downward-only
continuations as currently provided in R are not sufficient for that.
This version is intended only as a non-local exit mechanism.
Best,
luke
On Mon, 31 Mar 2008, f.jam
Dear Prof Ripley,
Prof Brian Ripley wrote:
> But it is not taken 'verbatim from src/main/print.c' (at least not in
> that version of R), and the code is not run with USE_RINTERNALS defined
> when write-barrier checking is enabled.
>
> The example has been updated to match the current code in 2.
>> hmm, I see 219 out 1378 CRAN packages having a 'tests'
>> subdirectory, so it seems you have been a bit unlucky. ;-)
>
>
>
> How unlucky exactly?
>
>
> > fisher.test(matrix(c(0,20,219,1159),2,2))
>
Hey, no, I desagree ! I random 10, the 10 first I take the ten first
package. So this in not ran
Prof Brian Ripley wrote:
> I didn't say 'USE_RINTERNALS is not needed' for your code: I said it was
> not used for the code that was run.
I see. My original point was that the text of the "Writing R extension"
manual advises against using 'USE_RINTERNALS' but then gives an example
that only wor
callcc is similar to the "yield" keyword in python and c#
it lets you define e.g. a generator of lists of numbers.
Gabor Grothendieck wrote:
>
> Would anyone like to explain if callCC in R 2.7.0 gives
> anything that on.exit does not already provide?
>
> It seems that the exit condition once
Martin Maechler <[EMAIL PROTECTED]> a écrit :
>> "CG" == Christophe Genolini <[EMAIL PROTECTED]>
>> on Mon, 31 Mar 2008 00:31:55 +0200 writes:
>
>>>
>>> Generally I find it's good to look at examples that work.
>>> For examples of packages using tests, look at source
>