Tag Info

New answers tagged

3

It appears as if this problem was a bug in earlier versions of the RPi distribution. The August 4, 2014 version behaves as expected.: $Version Column[{Date[],DateList[],$TimeZone}] (* 10.0 for Linux ARM (32-bit) (August 4, 2014) {2014, 12, 17, 18, 30, 42.338928} {2014, 12, 17, 18, 30, 42.339383} -6. *)


1

The following is a slightly simplified version of your DynamicModule: DynamicModule[{x}, Column[{Button["start", x = 0; RunScheduledTask[x++;, {1, 5}]], Row[{Dynamic[HoldForm[x]], " = ", Dynamic[x]}]}] ] When you evaluate this for the first time, underneath the button you see the output (* FE`x$$82 = FE`x$$82 *) (very likely with a different ...


1

I find Part the easist way of doing this sort of operation: a[[All, 1]] = a[[All, 1, 1 ;; 3]]; a (* {{{2007, 1, 3}, 10.}, {{2007, 1, 4}, 20.}, {{2007, 1, 5}, 30.}} *)


3

Here is an alternative aiming at maximal robustness: it does only change those entries of the list for which the change makes sense (i.e. the first part looks like a date list). Of course other approaches are much more efficient, so if efficiency is relevant and you know that all entries look the same, this approach is probably not what you want to use... ...


4

a = {{{2007, 1, 3, 0, 0, 0.}, 10.}, {{2007, 1, 4, 0, 0, 0.}, 20.}, {{2007, 1, 5, 0, 0, 0.}, 30.}}; {#[[;; 3]], #2} & @@@ a (* {{{2007,1,3},10.}, {{2007,1,4},20.}, {{2007,1,5},3 0.}} *)


3

Cases[a, {x_, y_} :> {x[[;; 3]], y}]


1

DateListLogLogPlot does not exist in my copy of Mathematica, version 10.0.1.0 on Windows 7 64-bit. One possible explanation for the observed behaviour is as follows. When I start in a fresh session, the symbol does not appear in the completion list: However, if I then type DateListLogLogPlot into a cell and evaluate it, then the symbol now appears as a ...



Top 50 recent answers are included