| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 1 year, 3 months |
| seen | 2 hours ago | |
| stats | profile views | 15 |
|
Mar 12 |
revised |
How to paint part of DateListPlot? added graph |
|
Mar 12 |
answered | How to paint part of DateListPlot? |
|
Mar 6 |
comment |
Enforcing correct variable bindings and avoiding renamings for conflicting variables in nested scoping constructs @Leonid Thanks. |
|
Mar 6 |
comment |
Enforcing correct variable bindings and avoiding renamings for conflicting variables in nested scoping constructs I am still not clear about what constitutes a conflict of variables. For example why Module[{body}, Function[x, body] /. body -> 2 x] and Module[{ }, Function[x, body] /. body -> 2 x] give different answers? It seems that in the first one, Module renames x, as it detects body inside Function, and this doesn't occur in the second one. |
|
Mar 6 |
comment |
Enforcing correct variable bindings and avoiding renamings for conflicting variables in nested scoping constructs Right. Although in some cases that may be also what you want to achieve when evaluating f[x] (i.e., treating x as the function variable). |
|
Mar 6 |
answered | Enforcing correct variable bindings and avoiding renamings for conflicting variables in nested scoping constructs |
|
Jan 25 |
awarded | Yearling |
|
Jan 15 |
comment |
Cannot plot Quantity values with DateListPlot You can also do: DateListPlot[QuantityMagnitude[gasPrices]] to remove the units. |
|
Jan 10 |
comment |
Ignore missing data while doing a Mean And I just noticed that you may also want to wrap na -> Sequence[] with parenthesis, so that it works when na is an integer. |
|
Jan 9 |
comment |
Ignore missing data while doing a Mean By the way, you could instead do MapThread[Mean[DeleteCases[{##}, na]] &, a, Depth[a] - 2], which seems to be faster. |
|
Jan 9 |
comment |
Ignore missing data while doing a Mean Sullivan, it eliminates the missing values from the list. For example: {a,na,b} /. na -> Sequence[] returns {a, b}. In the above, Mean operates over the resulting lists (without the missing values). You can see what's going on by replacing Mean by some other undefined function. |
|
Jan 9 |
revised |
Ignore missing data while doing a Mean added 192 characters in body |
|
Jan 8 |
revised |
Ignore missing data while doing a Mean shorten the code of meanWithNa. |
|
Jan 8 |
revised |
Ignore missing data while doing a Mean fixed the comments within the code |
|
Jan 8 |
revised |
Ignore missing data while doing a Mean small improvement in the function. |
|
Jan 8 |
answered | Ignore missing data while doing a Mean |
|
Jan 5 |
awarded | Scholar |
|
Jan 5 |
accepted | Thread over a nested list top to bottom until non-list elements are found |
|
Jan 5 |
revised |
Thread over a nested list top to bottom until non-list elements are found change the title. edited the body of the question to better reflect what is been asked. |
|
Jan 5 |
comment |
Thread over a nested list top to bottom until non-list elements are found Thanks to both of you (leonid and hypnotoad). Hypnotoad, I was indeed overcomplicating the issue. |