13,943 reputation
13273
bio website
location
age
visits member for 2 years, 6 months
seen 21 hours ago

The "WR" in my name has nothing to do with the company that develops Mathematica.


1d
awarded  Nice Answer
1d
comment What is the natural way of using Dataset to get a FittedModel?
@RunnyKine Indeed ;) Leftovers from one of the other 50 variations I tried, no doubt. Removed.
1d
revised What is the natural way of using Dataset to get a FittedModel?
removed unnecessary quotes
1d
comment How to insert zero counts uniformly with Dataset Counts query
I posted a question about the possible bug.
1d
asked Possible bug involving Dataset/Query and RightComposition
1d
answered Possible bug involving Dataset/Query and RightComposition
1d
comment How to insert zero counts uniformly with Dataset Counts query
The difference between the /* behaviour between raw2 vs raw is strange and possibly a bug. In the meantime, try the supposedly equivalent expression raw2[Values /* KeyUnion, Counts][All, All, # /. _Missing -> 0 &]. If you wish to pursue the /* difference, I suggest a new question (which I presently cannot answer).
2d
comment Get the last line from each of a large number of files, transform them, and write all results to a single new file
@librik Thanks, that never occurred to me. I've added a note to that effect to my response.
2d
revised Get the last line from each of a large number of files, transform them, and write all results to a single new file
added the note about using a negative stream position
2d
answered What is the natural way of using Dataset to get a FittedModel?
2d
revised How to insert zero counts uniformly with Dataset Counts query
add the example query for working from the raw data
2d
revised How to insert zero counts uniformly with Dataset Counts query
added the single-pass version of the replacement query
2d
answered How to insert zero counts uniformly with Dataset Counts query
Jul
27
answered Changing Values in an Association using Map
Jul
27
comment How to get a list of all expressions in a notebook matching a certain pattern?
@VladimirReshetnikov The $ prefix is purely stylistic. I use it so that global variable names stand out. I've been burnt too many times when I forget that x is bound to something, so I use $x instead. Mathematica uses the same convention for built-in globals, except those variables start with a capital letter after the $.
Jul
27
comment How to get a list of all expressions in a notebook matching a certain pattern?
@Mr.Wizard Thanks for the comments. (1) Done. (2) Agreed, I just have the habit of using the long form. (3) It is not common, but I have seen it. It is similar to the Missing idiom. My choice was arbitrary and I was attempting to convey the notion of failure. The wrapper is strictly speaking not necessary -- the only requirement is that the head is different from Hold so that failures can be distinguished. Cell would be good enough. I leave it to the taste of the user.
Jul
27
revised How to get a list of all expressions in a notebook matching a certain pattern?
moved the caution about `ToExpression` from a comment to the main body
Jul
27
answered How to get a list of all expressions in a notebook matching a certain pattern?
Jul
27
answered Dataset with no members
Jul
27
comment Error changing Dataset using Part
Examples such as these are sure to increase the fun factor for the WRI employees working to compile the Query language into SQL ;)