53,247 reputation
5148243
bio website mathprogramming-intro.org
location St. Petersburg, Russia
age 37
visits member for 2 years, 3 months
seen 3 mins ago

Ok, an obligatory note: opinions expressed here are mine and not those of my employer.


20h
awarded  Enlightened
20h
awarded  Nice Answer
2d
comment Getting R textual output into Mathematica
@pjc42 There isn't. I was requested to deal with this problem by a number of people, but didn't have a chance to do it yet. But it is one of the top things on my RLink todo list (perhaps the first one).
2d
comment Getting R textual output into Mathematica
@pjc42 Re: RLink - thanks, it's good to know that it is useful. Re: summary - you can then simply do something like RSummary[rcode_String] :=StringJoin@Riffle[#, "\n"] &@REvaluate["capture.output(print( summary(" <> rcode <> ")) )"]. You can call it like RSummary["reg"] (from the above example), where in place of "reg" you can use a variable or just a piece of code which evaluates to some R expression, for which you want the summary.
Apr
17
comment Bizarre behavior of With, Compile and Break
@OleksandrR. Thanks, good to hear! Particularly from you, given that you have an extensive knowledge of Compile -related matters. I'd be interested to dig deeper myself, but I never have the time for it.
Apr
17
comment Bizarre behavior of With, Compile and Break
@Pillsy And that's why I think this is not really a duplicate, although a strongly related question for sure.
Apr
17
comment Bizarre behavior of With, Compile and Break
@halirutan I can't agree more!
Apr
17
comment Bizarre behavior of With, Compile and Break
@halirutan I just read Szabolcs's answer in more detail, and it is funny how similar our arguments are. To the point that this question might almost be considered a duplicate (but I think it is still a little short of being one).
Apr
17
comment Bizarre behavior of With, Compile and Break
@halirutan I was not aware of that particular link, although apparently took part in a discussion linked to by that link. In any case, that was long ago, and I had no memory of that one. Thanks for the reminder!
Apr
17
answered Bizarre behavior of With, Compile and Break
Apr
17
comment Getting R textual output into Mathematica
@pjc42 Do you mean to generalize the above to wrap around an arbitrary piece of R code?
Apr
17
awarded  Enlightened
Apr
17
awarded  Nice Answer
Apr
17
comment Summarize a list of pairs / (Using GatherBy and Tally?)
I'd advise against using Block for variable localization. Module is much safer.
Apr
16
comment Scan vs Map vs Apply
In addition to the references given by @Szabolcs: I covered these functions in considerable detail here.
Apr
15
comment Need to create a function to generate all permutations of Range[$n$]
@Mr.Wizard Ok, done.
Apr
15
answered Permutations[Range[12]] produces an error instead of a list
Apr
15
comment Need to create a function to generate all permutations of Range[$n$]
@Mr.Wizard Ok, fair enough. Perhaps, what I wanted to say was that there wasn't a practical (fast enough) solution for really large number of permutations posted for that question, while I believe I do have one. Re: moving - sure. Can you do it by merging the answer sets, or do you suggest that I copy and paste it from here?
Apr
15
comment Need to create a function to generate all permutations of Range[$n$]
@Mr.Wizard This may look like a duplicate, but the emphasis here is on how one can make this work, not on the mere fact that the straight-forward use of Permutations will blow up the memory.
Apr
15
comment RLink Java(TM) platform has stop working
@MilosCipovic Thanks. But by now I know about a lot of issues with it, and can see lots of ways it can be improved.